~/talk

Cracking Kotlin Coroutines

Talkat droidcon Italy 2022 · 2022-10-06..10-07· [android]
links:none on file
slides:none on file

Walks through continuations and suspension with live Android code printed to a TextView, demonstrates using suspendCancellableCoroutine as a callback bridge, contrasts builders launch vs async and shows async exceptions surface on await, explains scope inheritance and how overriding a job breaks structured concurrency, proves cancellation propagates to children and why silent swallowing breaks logic, shows using viewModelScope, supervisorScope to limit propagation, and uses withContext(NonCancellable) to run required cleanup that must still be used sparingly.

AI-written summary · about

  1. 0:00Start
  2. 2:22Suspension
  3. 8:25Builders
  4. 9:18Scope
  5. 10:28Context
  6. 11:55concurrency
  7. 21:41Cancellation
  8. 28:41Exceptions
~/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.