Intermediate Swift
Q84 / 100

What is the Swift AsyncStream?

Correct! Well done.

Incorrect.

The correct answer is B) A way to bridge callback or delegate-based APIs into Swift async sequences using a closure-based builder

B

Correct Answer

A way to bridge callback or delegate-based APIs into Swift async sequences using a closure-based builder

Explanation

let stream = AsyncStream<Int> { cont in timer.onTick { value in cont.yield(value) } } bridges timer callbacks into for await loops.

Progress
84/100