~/talk

Coroutines Zero to Hero

Talkat droidcon SF 2019 · 2019-11-18..11-19· [kotlin]
links:none on file
slides:none on file

Kotlin coroutines are explained with concrete mechanics: how suspend functions compile to continuations, how CoroutineContext composes Job and Dispatchers, and how cancellation propagates so a child launched coroutine is cancelled when its parent is cancelled. Examples show launch, withContext and async/await semantics (500 ms and 1 s delays), a benchmark where 1,000 asyncs use far less memory than 1,000 launches, mutexes are nonreentrant so use carefully, and channels implement backpressure safely (producer suspends instead of overflowing).

AI-written summary · about

  1. 0:00Introduction to coroutines
  2. 1:28What are coroutines
  3. 3:52Suspend functions in Kotlin
  4. 6:02Coroutine context explained
  5. 8:28Dispatchers and jobs
  6. 11:16Launching coroutines
  7. 14:27Context switching with withContext
  8. 16:11Async operations and await
  9. 19:23Async vs launch performance
  10. 20:06Synchronization with coroutines
  11. 23:57Using mutex for synchronization
  12. 24:19Channels and back pressure
  13. 28:12Flows vs RxJava
  14. 29:15Coroutines for beginners
  15. 30:20Q&A and closing
~/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.