3 ms·
MacOS uses Dispatch/GCD to handle signals, the system manages the thread for ObjC/Swift like they described Go and Python. https://developer.apple.com/document
by pram 3y ago
MacOS uses Dispatch/GCD to handle signals, the system manages the thread for ObjC/Swift like they described Go and Python.
https://developer.apple.com/documentation/dispatch/dispatchsource/2300045-makesignalsource https://developer.apple.com/documentation/dispatch/dispatchs...
- KnobbleMcKnees 3y agoHaving spent a little time writing toy projects with Go channels, I have an increased appreciation for GCD. I think it has an amazingly low barrier to entry for dealing with simple parallelism. I can see why it's still the gatekeeper for concurrency in iOS and macOS software given how flexible the API is. (In particular, being able to pass queues to publishers in Combine is a little bit of sweetness that makes it more of a joy to use)