Beginner Swift
Q15 / 100

What is the @escaping attribute on a closure parameter?

Correct! Well done.

Incorrect.

The correct answer is B) Indicates the closure may outlive the function call (e.g., stored for async use)

B

Correct Answer

Indicates the closure may outlive the function call (e.g., stored for async use)

Explanation

Without @escaping, a closure must be used synchronously. @escaping allows the closure to be stored or called asynchronously after the function returns.

Progress
15/100