~/talk

Coroutines for Java Developers

Talkat Devoxx Belgium 2019 · 2019-11-04..11-08· [kotlin, concurrency]
slides:none on file

Shows how Kotlin coroutines use the suspend keyword and compiler-generated continuation objects to turn blocking calls into suspensions (example: wrapping a CompletableFuture to resume a continuation), with APIs like launch/async/withContext and Dispatchers for executor mapping. Demonstrates sequences with yield, measures that millions of coroutines start in ~1.5s while OS threads cap at ~4k–12k, and explains structured concurrency that auto-cancels child coroutines; works on JVM (down to Java 6) and powers Ktor.

AI-written summary · about

  1. 0:00Start
  2. 10:35Fibonacci Sequence
  3. 11:45Coroutine Builder == Sequence
  4. 12:43Suspend & Fun Rules
  5. 13:12How does it work?
  6. 19:58macos / Linux
  7. 24:33Threads vs Coroutines
  8. 25:54Example Service
  9. 28:15Rx Operators
  10. 33:46Maven/Gradle Dependency
  11. 35:17Launch Coroutine
  12. 36:32Switch Dispatcher
  13. 37:38Structured Concurrency
~/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.