~/talk

Going with the Flow - Using Coroutines 1.3.x

Talkat droidcon SF 2019 · 2019-11-18..11-19· [android, reactive-programming]
links:none on file
slides:none on file

Shows concrete migration patterns: Retrofit 2.6.0 uses suspend service methods, Flow is Flow stable in Kotlin 1.3.0, and channels change semantics. Compares channel types (rendezvous, unlimited, array, conflated), demonstrates broadcast channel deadlock and why conflated broadcast channel behaves like LiveData for multi-subscriber state. Presents a working alternative: a broadcast-style Flow that uses sendBlocking/awaitClose to start on first subscriber and stop on last, and notes Lifecycle 2.2 RC2 scope helpers (launchWhenResumed) for lifecycle-aware coroutines.

AI-written summary · about

  1. 0:00Introduction
  2. 1:07Coroutines and suspend functions
  3. 9:04Channels and back pressure
  4. 16:33Broadcast channels explained
  5. 23:43Structured concurrency limits
  6. 28:17Flows vs callbacks
  7. 37:50Flows in Android practice
  8. 42:01Lifecycle scope and LiveData
~/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.