~/talk

Android Suspenders

Talkat KotlinConf 2018 · 2018-10-03..10-05· [android]
slides:none on file

Practical guide to replacing RxJava with Kotlin coroutines on Android, showing real code: concurrent fetches via async/await, ViewModel and Lifecycle CoroutineScope patterns, Job cancellation and checking isActive, and converting Play Services Tasks with suspendCoroutine. Measured costs: a thread ~1MB vs coroutine memory tens of KB, APK impact 774KB library down to <100KB with optimization. Runtime details: default dispatcher parallelism min 2, IO dispatcher min parallelism 64, channels for streaming and a working location-observer example using ReceiveChannel.

AI-written summary · about

  1. 0:00Intro
  2. 0:13AMERICAN EXPRESS
  3. 0:25ANDROID SUSPENDERS
  4. 2:43AsyncTask
  5. 2:55Executors
  6. 3:16Loaders
  7. 3:34Future
  8. 3:44Libraries
  9. 4:16What does your typical mobile app do?
  10. 6:44core -android -rx2
  11. 7:42Creating routines
  12. 8:49How do we use them on Android?
  13. 11:02Coroutines can have a parent-child relationship
  14. 12:11Scopes
  15. 17:33What if I'm not using View Models?
  16. 19:45Cancellation requires co-operation
  17. 20:59launch rethrows exceptions
  18. 22:13Dispatchers
  19. 22:32What's a Coroutine Dispatcher?
  20. 25:00Most devs use RxJava for easy threading
  21. 25:38Coroutines can replace Single / Maybe / Completable
  22. 29:34Channels has 73 built-in operators
  23. 30:55Get last known location One shot callback
  24. 33:41Observe location updates Multiple value callback
  25. 38:18Kotlin Coroutines in Practice
~/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.