~/talk

Lean async code with Kotlin´s coroutines

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

Shows concrete Kotlin coroutine patterns used at Gett: using Retrofit for network calls, launch + Job to run two reverse-geocode calls in parallel, using async/await + select to return the first provider result (Google vs startup), wrapping jobs in a lifecycle-aware job cancellor to auto-cancel on destroy, and replacing BroadcastChannel boilerplate with a dataStore/dataStream abstraction. Demo code runs, simplifies sequencing, and improved readability and lifecycle safety.

AI-written summary · about

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