Oddbean new post about | logout
 We can use DispatchQueue.concurrentPerform function to verify the thread safety of our types using unit tests. Don't wait for strange crashes from production, invest your time earlier into safe types.
https://swiftwithmajid.com/2023/09/05/thread-safety-in-swift-with-locks/

https://files.mastodon.social/media_attachments/files/111/028/577/816/524/980/original/205f237b69e1429f.png