Matt Massicotte on Nostr: Async methods on non-Sendable types is common, but really problematic. Swift 6 ...
Async methods on non-Sendable types is common, but really problematic.
Swift 6 introduces the `#isolation` default expression which makes it much more usable. The standard library has already begun adopting this widely, and if you have non-Sendables with async methods you should too. Here's how:
https://github.com/mattmassicotte/ConcurrencyRecipes/blob/main/Recipes/Isolation.md#async-methods-on-non-sendable-types
Swift 6 introduces the `#isolation` default expression which makes it much more usable. The standard library has already begun adopting this widely, and if you have non-Sendables with async methods you should too. Here's how:
https://github.com/mattmassicotte/ConcurrencyRecipes/blob/main/Recipes/Isolation.md#async-methods-on-non-sendable-types