Brilliant explorable explanation from @samwhoo on queuing strategies.
Loved the ending where he zooms out and abstracts the requests over time to let you understand the overall behavior of the system.
Amazing article! 👏 https://t.co/6lGARJcmtt
"Running code on the Main Actor is a terrible idea. You should always avoid blocking the Main Actor!"
In this week's post I take a look at Xcode 26's "Main Actor by default" setting and I provide my thoughts on whether you should opt-out or not.
https://t.co/eZlgmJn6SV
@jacobtechtavern Actors are great, but this is one excellent example of when not to use an actor. There are Sendable types that do the locking and unlocking for you though, like the Mutex type in Swift 6 is a good pattern. Or NIO's LockedValueBox.