Concurrency in Swift 6
SE-0434: Usability of global-actor-isolated types
Handful of changes here, but I'm particularly excited about MainActor closures now being Sendable. This will be a major quality of life improvement.
And with this one I'm done! Thanks for coming along for the ride.
@mattiem You’re the concurrency hero we don’t deserve
@nckh a) you absolutely do deserve it and b) not a hero!
@mattiem and yet your writings have saved my ass a couple times
@mattiem thanks for the series! Invaluable!!
@mattiem for the subclassing issue, would this come up when subclassing XCTestCase? It’s been a bit cumbersome testing MainActor isolated types because you can’t apply MainActor isolation to the entire XCTestCase subclass, since XCTestCase itself has no isolation. You have to add MainActor to each test method individually. Maybe this proposal fixes that?
@calicoding hmmmm, maybe! I thought I tried that but now I'm not so sure...
@mattiem Thanks a ton for this series of posts. You’ve been such a big help for a lot of people entering this new concurrency world!