What is Nostr?
Matt Massicotte /
npub1xfk…wjhv
2024-07-04 11:49:23

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
Author Public Key
npub1xfkfzq9r68c7e5xnt0u4jzexx0nvy239m6as32k8n4d0jqaaseeqskwjhv