~/talk

Deep diving into the Kotlin Coroutines API

Talkat Mobius 2019 Piter · 2019-05-22..05-23· [kotlin, concurrency]
links:none on file
slides:none on file

Deep dive through the Kotlin Coroutines API: concrete examples of launch / async / await, use of Dispatchers.IO, Main, Default, and how suspend functions compile into a continuation state machine that avoids extra stack frames. Covers CoroutineScope + Job hierarchies for structured cancellation, exception handlers, Deferred.await semantics, parallel async patterns, avoiding GlobalScope, prefer while(isActive) and withContext for thread switching, and practical Android patterns (ViewModel/presenter scopes) that prevent leaks and allow immediate cancellation.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09Brief history of async programming
  3. 4:04Understanding coroutine builders
  4. 10:49Coroutine scopes and lifecycle
  5. 17:36What are suspending functions
  6. 26:29Continuations and state machines
  7. 31:07Async/await in Kotlin
  8. 38:37Writing safe coroutine code
  9. 44:23When to use coroutines
  10. 46:35Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.