Protecting mutable state with Mutex in Swift
Once you start using Swift Concurrency, actors will essentially become your standard choice for protecting mutable state. However, introducing actors also tends to introduce more concurrency than you intended which can lead to more complex code, and a much harder time transitioning to Swift 6 in the long run. When you interact with state that’s […]
https://www.donnywals.com/prot....ecting-mutable-state
Discover the world at Altruu, The Discovery Engine