~/talk

Promises in iOS

Talkat UIKonf 2019 · 2019-05-26..05-29· [ios, frontend-architecture]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 0:34History of promises
  3. 3:21Defining promises
  4. 6:00Real-world networking use
  5. 9:10Implementation with PromiseKit
  6. 12:20Code readability benefits
  7. 15:38Advanced promise chaining
  8. 17:28Debugging implementation
  9. 19:27Framework capabilities
  10. 22:43Comparative framework analysis
  11. 25:17The future of Swift async
  12. 28:00Q&A and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.