The Multi-Threaded Asynchronous Parallel World of Swift
summary
Shows concrete APIs and outcomes: uses Grand Central Dispatch with dispatch groups for concurrent downloads, semaphores and barriers to avoid race conditions, and operation queues for explicit dependencies but notes they don’t fit async well; demonstrates NSTask for separate processes; implements promises with GooglePromises (DispatchQueue + fulfill/reject) and SwiftNIO Futures (EventLoop + promise) and shows Combine’s dataTaskPublisher + receive(on: main) but warns Combine requires iOS 13+/macOS 10.15; mentions Async/Await proposal as syntactic sugar.
AI-written summary · about
chapters (20)
- 0:00Start
- 3:06Graph of CPU Speed
- 4:04Graph of Cores
- 7:27URLRequest
- 7:57Notification Center
- 8:26Timers
- 9:06UI Updates
- 10:21Race Conditions
- 11:18Barriers Semaphores and Locks
- 12:29NSTask and Process
- 13:23NSThread
- 14:27DispatchQueue
- 15:18DispatchGroup
- 16:39GCD Barriers Code Sample Semaphores Flags
- 17:51Adding Operations
- 18:18Dealing with Dependencies
- 20:47SwiftNIO Futures
- 23:45Google Futures
- 30:40What's the Future?
- 33:23Thank You!








