We leverage “Nonisolated Core, Isolated Shell” by introducing the StoreActor: a Store-like object that runs in the background on the cooperative thread pool, maximizing parallelism for tests and non-UI features.
Let’s explore another example of designing code with isolation in mind, inspired by NotificationCenter. We’ll take a trip down memory lane to see how Swift adopted the original NeXTSTEP implementation, before concurrency, and its trade-offs.
pointfree.co/episodes/ep385…
We recently expanded our comprehensive series on Swift concurrency and isolation to explore what we like to call “Nonisolated Core, Isolated Shell”.
Learn how to design your Swift code to be concurrency-safe without having to think about data races and locks!
The Swift compiler is great for guiding people (and agents!) to correct API usage, such as via 'unavailable' attributes. But it's not possible to test that code *doesn't* compile.
So, we made a tool that does just that! pointfree.co/blog/posts/234…