Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardSwiftSendable and data-race safetySingle-choice MCQ

Under Swift's region-based isolation (SE-0414), why can this code compile even though `NonSendable` does not conform to `Sendable`?

final class NonSendable { var x = 0 } func run() async { let obj = NonSendable() await someActor.store(obj) // obj sent across isolation boundary // obj is never used again here }