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 { […]
Swift 6 – How to use Typed Throws inside a Task
I am trying to use typed throws from an async function but the compiler can’t seem to infer the type. I get the error Type ‘_ErrorCodeProtocol’ has no member ‘one’