Future of Swift: A Sneak Peek at async / await
summary
Shows how to preview Swift 5.5 async/await by installing the latest Swift snapshot, enabling the flag -Xfrontend -enable-experimental-concurrency, and using withCheckedContinuation to wrap completion‑handler APIs. Demonstrates converting legacy URLSession calls into async functions, using @asyncHandler to call async from synchronous entry points, using async let (and Task.runDetached / Task.checkCancellation / handle.get) for parallelism and cancellation, and compares where async/await simplifies flow versus when Combine or RxSwift remain more appropriate.
AI-written summary · about
chapters (7)
- 0:00Introduction to async/await
- 1:07Motivation behind async/await
- 8:47Setting up async/await in Swift
- 13:21Key concepts of async/await
- 18:16Improving code with async/await
- 22:23Understanding asynclet and tasks
- 26:55Recap and additional resources
related talks
24mAsync/await in Swift
36mTesting Asynchronous Code in Swift 5.5
35mThe Multi-Threaded Asynchronous Parallel World of Swift
42mAsync Await and More in Swift
35mSwiftUI, Async/Await, AsyncAlgorithms: How does it all fit?
47mDo We Really Need Swift Modern Concurrency?
29mWilling Suspension of Disbelief
44mSwift 6, Async/Await, SwiftUI went into a Bar...
