~/talk

Kotlin Coroutines

Talkat DevFest Nantes 2018 · 2018-10-18..10-19· [kotlin]
slides:none on file

Explains how Kotlin implements async/await as library functions on top of coroutines, shows suspend functions compiled to a continuation/state‑machine, and demonstrates Deferred vs launch and where work resumes (default thread pool vs main UI thread). Shows lifecycle binding via CoroutineScope and how structured concurrency makes child coroutines cancel automatically, so started coroutines are tied to an activity‑like lifecycle. Counts scale (thousands of lightweight coroutines), concrete APIs used (Deferred, launch, await) and the real cancellation/exception behavior.

AI-written summary · about

  1. 0:00Start
  2. 1:53Motivation
  3. 3:22No callbacks!
  4. 7:54Example: waiting for two asynchronous computations to complete
  5. 10:06Back to image example
  6. 10:19async starts new computation
  7. 10:57await is a suspend function
  8. 19:39Rewrite with suspend functions
  9. 22:47Coroutine Builder starts a coroutine
  10. 34:48Activity lifecycle
  11. 42:18Continuation
~/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.