The Multi-Threaded Asynchronous Parallel World of Swift
summary
Covers concrete patterns and libraries for parallelism: Grand Central Dispatch queues, dispatch groups and semaphores/barriers for atomic access; converts a URLSession download into futures and shows flattening 100 post downloads into a single result using SwiftNIO event loop futures and PromiseKit’s when(fulfilled) flow; demos mapping vs flatMap for chained async author lookups, shows Combine’s dataTaskPublisher into SwiftUI bindings, and concludes that promises avoid callback hell while async/await and actors are the planned future.
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker intro
- 1:58Why parallelism matters now
- 3:23Concurrency vs parallelism explained
- 4:50Asynchronous programming basics
- 7:00Threading and race conditions
- 9:49Apple’s GCD and dispatch queues
- 13:18Promises and futures overview
- 15:22Demo with SwiftNIO futures
- 22:32Promise Kit demo and comparison
- 27:29Combine and reactive programming
- 31:07Future of Swift concurrency
- 33:31Best practices and closing
related talks
45mThreads, Queues, and Things to Come: Present and Future of Concurrency in Swift
42mAsync Await and More in Swift
44mSwift 6, Async/Await, SwiftUI went into a Bar...
02h 42mSwift Structured Concurrency
31mFuture of Swift: A Sneak Peek at async / await
31mYour Brain 🧠 on Swift Concurrency
35mSwiftUI, Async/Await, AsyncAlgorithms: How does it all fit?
26mSwift Concurrency Under the Hood
