~/talk

Coroutines Party Tricks

Talkat droidcon New York 2025 · 2025-06-25..06-26· [kotlin, concurrency]
links:none on file
slides:none on file

Rapid-fire tour of ten coroutine “party tricks” that shows concrete wins and surprising costs: adding suspend to 300 functions in OKIO, 200 in MSHI turns a JSON parse from 500 MB/s to 285 MB/s and the bytecode reveals a continuation/state‑machine allocation; Retrofit uses Java dynamic proxies to pass the continuation as the last parameter; proper cancellation needs suspendCancellableCoroutine plus invokeOnCancellation and careful resume variants to close OkHttp responses; yield can avoid recursion stack overflows; sequence builders, coroutine context as linked combined maps, and an idle detector via a decorated dispatcher are demonstrated.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03Rewriting OKIO with suspend
  3. 7:01Dynamic proxy Java-Kotlin
  4. 10:31Canceling HTTP calls safely
  5. 13:41Stack overflows with yield
  6. 17:58File system scanning with sequences
  7. 21:31Optimizing coroutine context
  8. 26:27Global uncaught exceptions
  9. 33:50Users as functions in navigation
  10. 38:02Back stack with coroutines
  11. 40:10Detecting idle states
  12. 43:40Summary
~/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.