~/talk

Migrating to Kotlin State & Shared Flows

speakerdeck:heyitsmohit
slides:none on file

Covers concrete migration steps: replace deprecated BroadcastChannel with Shared Flow using emit/tryEmit, map capacity to extraBufferCapacity, and set replay (default 0, replay 1 returns last value to late subscribers). Shows creating UI streams via State Flow or flow.shareIn/stateIn with start policies (eager, lazy, whileSubscribed). Demonstrates Molecule (Compose compiler) producing StateFlows, and gives three backpressure strategies with numbers: suspend (default), dropOldest, dropLatest and buffer examples like cache size 2 or 3.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 0:48Cold vs hot flows explained
  3. 3:41State flow fundamentals
  4. 10:30Flow combine for UI states
  5. 11:33Molecule library approach
  6. 17:11Shared flow deep dive
  7. 22:51Migrating from broadcast channels
  8. 25:42Flow sharing strategies
  9. 32:26Managing back pressure
  10. 34:53Summary and resources
~/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.