~/talk

Better asynchronous programming with Kotlin Coroutines

Talkat Android Makers 2018 · on Monday, 2018-04-23· [kotlin]

Builds a tiny DSL with extension functions load/then that runs a background async block as a Deferred and resumes on the UI, wires a LifecycleObserver to cancel that Deferred when stopped, and implements click throttling with an actor backed by a channel using offer to drop events while busy. Shows integration with Retrofit via a Deferred adapter, claims hundreds to thousands of coroutines are cheap on Android, and notes coroutines are still experimental.

AI-written summary · about

  1. 0:00BETTER ASYNC ON ANDROID WITH KOTLIN COROUTINES
  2. 3:32WHAT WE WANT
  3. 6:06CONTINUATION?
  4. 9:31WHAT THREAD TO RUN ON
  5. 9:53SPECIFY A PARENT COROUTINE
  6. 10:07THE FUNCTION TO RUN
  7. 11:49SUSPENDED FUNCTION
  8. 15:00LIFECYCLE OBSERVER
  9. 16:29MORE CONTROL
  10. 18:21CHANNELS
  11. 18:57CAN BE USED LIKE A SEQUENCE!
  12. 21:03ACTORS
  13. 22:22CONFUSED?
  14. 25:26COROUTINE LIBRARIES
  15. 25:51RETROFIT ADAPTER
  16. 26:30GRADLE STUFF
  17. 26:50RESOURCES
~/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.