Intermediate Swift
Q100 / 100

What is Swift's withCheckedContinuation for bridging synchronous callbacks?

Correct! Well done.

Incorrect.

The correct answer is B) A non-throwing version of withCheckedThrowingContinuation for bridging non-throwing callbacks into async/await

B

Correct Answer

A non-throwing version of withCheckedThrowingContinuation for bridging non-throwing callbacks into async/await

Explanation

let value = await withCheckedContinuation { continuation in nonThrowingCallback { result in continuation.resume(returning: result) } }

Progress
100/100