~/talk

Combine and your existing delegates and callbacks

Talkat code.talks 2022 · 2022-09-15..09-16· [swift, reactive-programming]
slides:none on file

Shows concrete recipes to modernize callback APIs: wrap a completion handler with a Combine Future for one-shot to return AnyPublisher, mark state with @Published -> publisher to replace change handlers, and build a CLLocationManager wrapper that exposes publishers for location and permissions — the provider works and coexists with old APIs. Demonstrates that networking often reads cleaner with async/await while state observation is still safer in Combine due to automatic cancelation, and explains converting publishers to async streams via the publisher.values bridge.

AI-written summary · about

  1. 0:00Start
  2. 9:56Key requirements when introducing a new technology
  3. 11:18Combine is a functional reactive programming framework
  4. 16:17Bridging callback based code into Combine
  5. 16:59What about change handlers?
  6. 18:48Replacing change handlers with Combine
  7. 23:12Async/ await for running tasks
~/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.