~/talk

Kotlin State & Shared Flows in Action

Talkat Android Worldwide July 2021 · 2021-07-27..07-28· [kotlin, android]
speakerdeck:heyitsmohit
slides:none on file

Concrete rules and examples for using Kotlin coroutines flows: stateFlow caches latest and requires a default value and .value updates; sharedFlow supports replay, extra buffer capacity, and exposes subscriptionCount as a StateFlow and does not complete normally; guidance to migrate BroadcastChannel code mapping send→emit and trySend→tryEmit; how to convert cold flows with shareIn using whileSubscribed, eagerly, or lazily; and buffer overflow strategies with explicit choices suspend, dropOldest, dropLatest.

AI-written summary · about

  1. 0:00Start
  2. 0:26Kotlin State & Shared Flows in Action
  3. 1:24What is a cold stream?
  4. 2:54Hot Streans
  5. 5:53State Flow vs Live Data
  6. 6:49State Flow Sunnary
  7. 18:33Sharing Policies
  8. 20:21Properties
  9. 25:44Buffering Overflow Strategies
~/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.