Promises in iOS
summary
Build fetches a list of countries and a details view that fires three network calls (exchange, weather, icon); replacing callbacks with PromiseKit returns readable chaining, lets a single loading indicator span dependent and concurrent requests, and uses when/all + then/done to await multiple results. Implementation mostly works but hits two concrete gotchas: PromiseKit 6 seal vs fulfill changes initializer semantics and documented then/done chaining can produce ambiguous-reference errors requiring an explicit return or nesting workaround. Overall readable gains, not bug‑free.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 0:34History of promises
- 3:21Defining promises
- 6:00Real-world networking use
- 9:10Implementation with PromiseKit
- 12:20Code readability benefits
- 15:38Advanced promise chaining
- 17:28Debugging implementation
- 19:27Framework capabilities
- 22:43Comparative framework analysis
- 25:17The future of Swift async
- 28:00Q&A and conclusion
related talks
35mThe Multi-Threaded Asynchronous Parallel World of Swift
19mTake a load off with React
23mHandling Data at Scale for React Developers
27mPractical functional programming: pick two
47mPromise-Based Architecture
43mSecond degree asyncronousity - learnings from developing iOS + IoT apps
41mSyncing and Collaboration with CloudKit
28mThe Art of Functional State Management
