~/talk

Understand Kotlin Coroutines on Android

Talkat Google I/O 2019 · 2019-05-07..05-09· [android]
links:none on file
slides:none on file

Explains concrete coroutines features now in Jetpack: a LiveData builder that runs coroutine blocks with a configurable context and a short timeout window to avoid wasted work during rapid rotate, lifecycleScope and viewModelScope to cancel coroutines on destroy while keeping long work across config changes using CompletableDeferred, WorkManager/Room/Retrofit support for suspend functions, and a kotlinx-coroutines-test story (testCoroutineDispatcher, runBlockingTest, advanceTimeBy) that makes deterministic unit tests and avoids flakiness.

AI-written summary · about

  1. 0:00Start
  2. 0:36The Dream Code
  3. 1:26The Working Code
  4. 3:32Focused on 3 Solutions
  5. 19:18Lifecycle of the block
~/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.