~/talk

Flowing in the Deep

Talkat droidCon Berlin 2019 · 2019-07-01..07-03· [kotlin, reactive-programming]
speakerdeck:sockeqwe
links:none on file
slides:none on file

Shows how Kotlin Flow (built on Coroutines) implements streams: uses flow builder with suspendable collect/emit pair, reimplements map (example multiplies five 100ms-emitted values by two) and a working switchMap that launches inner flows and cancels the previous inner job on new emissions. Explains threading: use channelFlow and send to switch contexts, flowOn only affects upstream, backpressure is automatic, and the demo operators compile and run as shown.

AI-written summary · about

  1. 0:00Introduction to Flow
  2. 1:53Problem with synchronous calls
  3. 6:06Observer pattern and Flow
  4. 10:20Building a Flow
  5. 13:30Handling errors in Flow
  6. 16:20Implementing the map operator
  7. 20:56Understanding switchMap
  8. 25:33Coroutine context and dispatchers
  9. 28:22Threading with Flow
  10. 34:04Useful Flow APIs
~/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.