~/talk

Better asynchronous programming with Kotlin Coroutines

Talkat Droidcon Italy 2018 · 2018-04-19..04-20· [android, kotlin]
slides:none on file

Kotlin Coroutines are shown as a practical replacement for callback hell by building a tiny DSL: an extension on LifecycleOwner that returns a Deferred from an async loader and an infix UI extension that calls await on the main thread; automatic cancellation happens via a LifecycleObserver that cancels the job on onStop. The demo uses launch/async, suspend functions, actors to throttle clicks, mentions a Retrofit deferred adapter, and notes coroutines are experimental and require Gradle flags; code is on GitHub and runs.

AI-written summary · about

  1. 0:00Start
  2. 0:09BETTER ASYNC ON ANDROID WITH KOTLIN COROUTINES
  3. 9:23CONTINUATION?
  4. 13:01WHAT THREAD TO RUN ON
  5. 13:38THE FUNCTION TO RUN
  6. 15:23SUSPENDED FUNCTION
  7. 20:03LIFECYCLE OBSERVER
  8. 28:44RETROFIT ADAPTER
~/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.