~/talk

Launching Into Coroutines

Talkat Chicago Roboto 2019 · 2019-04-25..04-26· [kotlin]
slides:none on file

Kotlin coroutines replace callback spaghetti with suspend/resume and integrate with Retrofit so network calls look like direct calls while running on Dispatchers.IO and CPU work runs on Dispatchers.Default leaving the UI on Dispatchers.Main. Structured concurrency enforces that a suspend function only returns after its child coroutines finish, scopes cancel their children and report exceptions. Testing support lands in kotlinx-coroutines-test. Examples show background save patterns, ViewModel scope usage, and pitfalls around unstructured launches and leaked work.

AI-written summary · about

  1. 0:00Start
  2. 0:24Are coroutines a fad?
  3. 6:20Network & Disk
  4. 17:46def dispatcher()
  5. 41:48Who gets exceptions?
  6. 46:29concurrency
~/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.