~/talk

Managing Combine, your existing code, and async/await

Talkat Do iOS 2022 · 2022-11-08..11-09· [swift, concurrency]
slides:none on file

Shows how to keep legacy callbacks while adding Combine and async/await: wraps URLSession.dataTaskPublisher and returns AnyPublisher via a Future bridge to avoid duplicating networking code; turns change callbacks into observables with the Published property wrapper; converts callbacks to async functions with unsafe continuation for one-shot calls; warns that tasks implicitly capture self and must be cancelled (use cancelables or weak self), and recommends Combine for state streams and async/await for single start–end tasks.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:04Talk overview and context
  3. 3:52Legacy code patterns in apps
  4. 6:23Closures and completion handlers
  5. 8:09Change handlers and state observation
  6. 10:34Migration strategies for new tech
  7. 11:58Combine speed run introduction
  8. 13:42Publishers and subscriptions
  9. 15:50Combine vs completion/change handlers
  10. 16:31Networking with Combine
  11. 17:54Bridging callback code to Combine
  12. 19:59Future for one-shot actions
  13. 21:02Replacing change handlers with Combine
  14. 24:34Location provider with Combine
  15. 28:43Async/await introduction
  16. 29:49Networking with async/await
  17. 30:34Bridging callbacks to async/await
  18. 31:39Calling async/await functions
  19. 33:21Async/await for state observation
  20. 34:03Async streams and sequences
  21. 36:30Task lifecycle management
  22. 39:20Combining Combine and async/await
  23. 41:27Future of Combine vs async/await
  24. 42:31Q&A session
~/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.