~/talk

Coroutines by Example

Talkat droidCon NYC 2018 · 2018-08-27..08-28· [kotlin, concurrency]
slides:none on file

Converts an Android app from RxJava streams to Kotlin coroutines by replacing Retrofit adapters with a Retrofit Deferred adapter, changing Singles/Completables to suspending functions, and using coroutine builders (launch/async) plus dispatchers (IO/Main/DB/computation). Replaces disposables with a parent composite Job and adapts a Room Flowable to a receive channel via openSubscription to ReceiveChannel, then compiles and runs the app successfully with network, DB caching, UI binding and diff calculation moved off the main thread.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 2:36Why use coroutines
  3. 6:45Five key coroutine facts
  4. 16:03Live coding introduction
  5. 16:44Adapting networking calls
  6. 19:53Using suspending functions
  7. 24:08Converting database operations
  8. 29:25Handling reactive streams
  9. 33:21Diff util example
  10. 36:55Final demo and summary
~/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.