Threads, Queues, and Things to Come: Present and Future of Concurrency in Swift
summary
Shows concrete code using GCD and NSOperationQueue with a real Hacker News client: fetches 500 IDs, spawns parallel story downloads, uses maxConcurrentOperationCount = 4, makes icon fetches depend on story fetches, and serializes async callbacks inside operations with a dispatch group. Shares mutate-safe updates via a serial dispatch queue, suspends the queue when a user opens a story, and demos progressive loading in the simulator. Predicts future native concurrency (ownership, green threads, actors).
AI-written summary · about
chapters (20)
- 0:00Intro
- 1:51CONCURRENCY?
- 2:26CORES!!!
- 4:10RESPONSIVENESS
- 6:08GRAND CENTRAL DISPATCH
- 7:04DISPATCH QUEUE PROPERTIES
- 8:37EXAMPLE: Serial, Background
- 11:02EXAMPLE: Concurrent, User Initiated
- 12:06OTHER GCD FEATURES
- 12:21DISPATCH GROUPS
- 13:31(NS) OperationQueue
- 14:03OPERATION QUEUE PROPERTIES
- 16:40SAMPLE
- 27:27SWIFT EVOLUTION
- 29:56POSSIBLE NATIVE MODELS
- 30:17GREEN THREADS
- 31:23PROMISES
- 32:58THE ACTOR MODEL
- 35:45ACTORS IN SWIFT?
- 36:57PREDICTIONS & OPINIONS
related talks
35mThe Multi-Threaded Asynchronous Parallel World of Swift
26mSwift Concurrency Under the Hood
42mAsync Await and More in Swift
38mReactive Swift Concurrency
23mSwift Concurrency is new and hard, and you can do it
30mA Practical Guide to Swift Concurrency
02h 42mSwift Structured Concurrency
47mDo We Really Need Swift Modern Concurrency?
