~/talk

Android Suspenders

Talkat Android Dev Summit 2018 · 2018-11-07..11-08· [android, concurrency]
links:none on file
slides:none on file

Kotlin coroutines become a practical threading and async model for Android: shows using launch/async with a ViewModel-scoped Job, how Dispatchers.IO and shared thread pools avoid needless switches, and how to convert Retrofit Tasks or Play Services callbacks into suspend functions via suspendCancellableCoroutine. Examples include parallelizing three network/local calls with async/await, using supervisorScope to avoid parent cancelation, and a location stream implemented as a cancellable suspendable producer.

AI-written summary · about

  1. 0:00Start
  2. 0:16Android's main thread
  3. 1:53AsyncTask
  4. 2:12Loaders
  5. 2:46Libraries
  6. 3:06Coroutines?
  7. 3:16What does your typical mobile app do?
  8. 5:51core -android -rx2
  9. 9:27How do we use them on Android?
  10. 11:46Scopes
  11. 19:03Cancellation requires co-operation
  12. 19:45Check isActive
  13. 20:15launch rethrows exceptions
  14. 23:07What's a Coroutine Dispatcher?
  15. 32:02Observe location updates Multiple value callback
~/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.