~/talk

Go with the Flow!

Talkat droidcon Italy 2022 · 2022-10-06..10-07· [kotlin]
links:none on file
slides:none on file

Shows that Flow operators are easy to write and actually usable: implements partition, takeUntil, groupBy with Kotlin coroutines and compares lines of code to Rx (thousands in legacy Rx vs tens in Flow). Uses channelFlow and channels to produce per-key streams, handles send/receive semantics, cancellation and closing downstreams, and fixes backpressure by choosing buffer strategy. Live code compiles and runs with concurrent collectors; the gotchas are buffer capacity choices (unlimited buffer vs rendezvous) and ensuring downstreams close on errors.

AI-written summary · about

  1. 0:00Kotlin Flows intro
  2. 1:48Partition operator in Kotlin
  3. 10:34takeUntil with coroutines
  4. 19:03groupBy operator
  5. 32:22Kotlin vs RX Java operators
  6. 35:34Summary & Q&A
~/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.