Intermediate Swift
Q41 / 100

What is Swift's async/await and how does it compare to completion handlers?

Correct! Well done.

Incorrect.

The correct answer is B) async/await provides structured concurrency with linear readable code; completion handlers nest and complicate error handling

B

Correct Answer

async/await provides structured concurrency with linear readable code; completion handlers nest and complicate error handling

Explanation

async/await (Swift 5.5) replaces nested completion handlers with sequential-looking code that suspends at await points without blocking the thread.

Progress
41/100