~/talk

Modern SwiftUI Callbacks using AsyncStream

Talkat SwiftLeeds 2025 · 2025-10-07..10-08· [swift, ios]
slides:none on file

Argues that continuous callbacks belong to async sequences not one‑shot async/await, and demonstrates concrete rewrites: CLLocationManager delegates → an async throwing stream feeding a client with a for try await loop; Combine’s PassthroughSubject replaced by AsyncSequence; Firestore snapshot listeners exposed as an async sequence combined with Firebase Auth state via flatMap to filter by userId. Shows continuation-based implementation, how to yield snapshots and handle errors and cancellation, and claims the resulting code is simpler, testable, and works for continuous real‑time updates.

AI-written summary · about

  1. 0:00Introduction and context
  2. 2:22Speaker background
  3. 3:36Evolution of programming
  4. 7:16The problem of blocking
  5. 10:02Handling async events
  6. 15:34Combine and concurrency
  7. 18:27Async sequences
  8. 21:49Firebase integration
  9. 26:00Auth and data streams
  10. 29:49Conclusion and benefits
~/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.