~/talk

Reactive App Orchestration with StateFlow

Talkat droidcon APAC 2020 · 2020-12-14..12-15· [android]
links:none on file
slides:none on file

Introduces StateFlow as a Coroutines-backed replacement for ConflatedBroadcastChannel and a migration target from LiveData with a few lines of code, demonstrating a working MVVM example using MutableStateFlow/StateFlow (requires an initial value, never completes upstream), explains using LifecycleScope to cancel collectors, shows unit tests with a test coroutine scope that collects emissions into a list and asserts equality, compares operators available versus LiveData, notes Compose compatibility and that ConflatedBroadcastChannel semantics are superseded by SharedFlow/StateFlow.

AI-written summary · about

  1. 0:00Introduction
  2. 1:59Flow basics and foundation
  3. 6:44StateFlow introduction
  4. 9:35StateFlow vs LiveData
  5. 12:44Migration guide to StateFlow
  6. 15:54Testing StateFlow implementation
  7. 17:39Q&A session
~/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.