Intermediate
Swift
Q87 / 100
What is the purpose of Swift's nonisolated keyword?
Correct! Well done.
Incorrect.
The correct answer is B) Opts a method out of actor isolation, allowing it to be called from any context without await
B
Correct Answer
Opts a method out of actor isolation, allowing it to be called from any context without await
Explanation
nonisolated func computeHash() on an actor can be called synchronously from any context, since it only accesses non-isolated (Sendable) data.
Progress
87/100