~/talk

Fueled Reactive apps with Asynchronous Flow and StateFlow to sync with the UI

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

Shows step‑by‑step migration from RxJava to Kotlin coroutines, Flow and StateFlow using Retrofit/OkHttp, Room and kotlinx‑coroutines with rxinterop so Java and Kotlin coexist; deepest layers migrate first, then repos expose flows collected by scopes with scope+supervisorJob for structured cancellation; replaces callbacks with StateFlow exposes UI state and uses channelFlow with awaitClose for view events; demo app (search tweets) compiles and runs, enabling gradual removal of RxJava and fewer memory leaks.

AI-written summary · about

  1. 0:00Introduction
  2. 1:54Use case overview
  3. 2:35Migration strategy
  4. 5:03Legacy architecture breakdown
  5. 8:57Benefits of layered migration
  6. 10:00Flow basics explained
  7. 11:46Threading and lifecycle
  8. 14:32Gradle dependencies
  9. 15:14Network data source refactor
  10. 18:04Repository implementation
  11. 20:28Naive flow approach
  12. 22:55Pro suspend function approach
  13. 24:21Flow builder patterns
  14. 27:08Use case refactor
  15. 31:00View delegate design
  16. 35:35RxJava cleanup
  17. 36:17StateFlow for UI sync
  18. 38:22StateFlow handler
  19. 39:43View implementation
  20. 41:49Lessons learned summary
  21. 44:13Next steps and stability
  22. 45:09Q&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.