Relative Content

Tag Archive for swiftswift6

Access actor isolated value from another actor isolated context in Swift 6

The bounty expires in 6 days. Answers to this question are eligible for a +50 reputation bounty. Sorin Lica is looking for a canonical answer. I have the following code example @globalActor actor GlobalActor { static let shared = GlobalActor() } @globalActor actor ControllerActor { static let shared = ControllerActor() } @GlobalActor protocol MyProtocol { […]