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

Why can passing a value to an actor method sometimes compile thanks to 'region-based isolation' even when the value's type is NOT `Sendable`?

func send(_ buf: NonSendableBuffer, to a: MyActor) async { await a.consume(buf) // can compile under Swift 6 region isolation }