Intermediate Swift
Q85 / 100

What is Swift's MainActor isolation checking?

Correct! Well done.

Incorrect.

The correct answer is B) A compile-time check ensuring @MainActor-isolated properties are only accessed on the main thread, flagging unsafe cross-actor calls

B

Correct Answer

A compile-time check ensuring @MainActor-isolated properties are only accessed on the main thread, flagging unsafe cross-actor calls

Explanation

The compiler flags non-isolated async calls to @MainActor properties, requiring await actor.property. This prevents data races at compile time.

Progress
85/100