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

An actor has a method that returns one of its stored non-Sendable properties. Under Swift's data-race safety model, what is the rule that governs whether that return is allowed across the actor boundary?

final class Ref {} actor Store { var r = Ref() func get() -> Ref { r } }