~/talk

Concurrency for Imposters

Talkat droidcon Berlin 2022 · 2022-07-06..07-08· [concurrency, kotlin]
slides:none on file

Explains why Kotlin coroutines beat ad-hoc threads for UI responsiveness, showing coroutines compiled to a simple state machine that suspends blocking work and lets other tasks run, using the memorable coroutine octopus analogy. Recommends learning coroutines and RxJava, using ViewModel-scoped coroutines so cancellation happens automatically when a screen dies, preferring immutable state and funneling mutations through one thread or queue, and using Dispatchers.IO for network/file work; points to specific books and blog posts for the compiler and debugging details.

AI-written summary · about

  1. 0:00Welcome and speaker intro
  2. 1:10Why this talk about concurrency
  3. 5:21Basics of Android concurrency
  4. 7:11Why use concurrency in Android
  5. 9:17Concurrency libraries overview
  6. 11:46Minimal coroutines example
  7. 13:33Coroutines and threads analogy
  8. 15:39How coroutines suspend tasks
  9. 17:03Common threading problems
  10. 21:11Handling long-running tasks
  11. 22:37Coroutines scope and context
  12. 25:06Resources for further learning
  13. 27:14Tips for learning concurrency
~/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.