~/talk

Lean Async Code with Kotlin's Coroutines

Talkat droidcon Berlin 2018 · 2018-06-25..06-27· [android, concurrency]
links:none on file
slides:none on file

Explains how to replace callback hell and much RxJava boilerplate with Kotlin coroutines, using kotlinx.coroutines primitives: launch, async/Deferred, runBlocking, and select/await to run parallel geocoding requests, take the first result, or wait for all jobs. Shows using Retrofit for network calls, converting lat/long to addresses in parallel, a lifecycle-bound Job canceller, and a conflated BroadcastChannel pattern turned into a simple DataStore/DataStream abstraction for UI updates. Claims clearer, sequential-looking code and easy custom abstractions.

AI-written summary · about

  1. 0:00Introduction to async code
  2. 2:29What are coroutines
  3. 6:04Coroutines in practice
  4. 10:01Parallel task execution
  5. 12:33Observing changes with channels
  6. 16:45Why use coroutines
  7. 19:34Q&A 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.