~/talk

Kotlin coroutines

Talkat Greach 2019 · 2019-03-28..03-30· [kotlin, concurrency]
links:none on file
slides:none on file

Explains how Kotlin coroutines replace callback hell with sequential-looking code using suspend functions and shows concrete primitives: withContext(dispatchers.IO), async + await, Jobs, join and cancel. Demonstrates a login then two parallel friend requests that go from 6s sequential to about 4s with async. Covers dispatchers (Default, IO — ~64 threads for IO, Main), builders (runBlocking, launch), scopes for Activity lifecycle, and wrapping legacy callbacks with suspendCoroutine.

AI-written summary · about

  1. 0:00Intro
  2. 0:41Understanding coroutines
  3. 10:13Suspending functions
  4. 15:39Dispatchers
  5. 29:17Scopes - extending Coroutine Scope
~/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.