~/talk

Coroutine Puzzlers

Talkat droidcon Berlin 2024 · 2024-07-03..07-05· [kotlin]
links:none on file
slides:none on file

Interactive live quiz shows 20+ Kotlin coroutine puzzles with runnable code: exact outputs for launch vs coroutineScope, delay is suspend so tasks overlap — two async delays take ~1s not 2s, cancel vs cancelAndJoin behavior, supervisorJob vs Job and supervisorScope isolates failures, withTimeout throwing TimeoutCancellationException, sleep vs delay making work blocking, race condition on counter increments across two threads (fails until properly synchronized) and finally a corrected run that produces 1,000,000 increments.

AI-written summary · about

  1. 0:00Welcome
  2. 1:08Setting up the interactive quiz
  3. 2:19First puzzle
  4. 3:53Coroutine scopes
  5. 6:02Cancellation and join
  6. 7:55Supervisor cancellation
  7. 10:54Exception handling
  8. 13:13Prevent propagation
  9. 15:01Supervisor scope vs job
  10. 18:39Parent job isolation
  11. 20:59Timeout handling
  12. 22:26Async timing
  13. 25:00Join all timing
  14. 27:56Delays and interruption
  15. 29:23Sleep delays
  16. 30:50Heavy computation
  17. 32:41Race conditions
  18. 35:54Synchronization limits
  19. 37:46Proper synchronization
  20. 40:10Final puzzle
~/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.