~/talk

Deep dive into Kotlin Flow

Talkat DroidKaigi 2025 · 2025-09-10..09-12· [kotlin, reactive-programming]
links:none on file
slides:none on file

Covers concrete pitfalls and fixes for Kotlin Flow: explains that MutableStateFlow is non‑completable and conflates values, that channelFlow supports concurrent emissions, and that operator fusion can silently preserve an old dispatcher or buffer size causing overflow. Dives into transformLatest, sample, merge, and stateIn/sharingStarted implementations, warns that some upstreams may never complete (example exaggerated to “one year”), and shows testing recipes using Turbine, an unlimited-buffer channel as upstream, background scope instead of TestScope, and multi‑threaded dispatchers to catch races.

AI-written summary · about

  1. 0:00Introduction
  2. 3:58Flow basics and types
  3. 14:01Flow builders and fusion
  4. 20:31Custom operators
  5. 27:50Testing Kotlin Flow
  6. 34:42Summary
~/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.