~/talk

Kotlin Coroutines: Beyond async/await

Talkat droidCon NYC 2018 · 2018-08-27..08-28· [kotlin, concurrency]
links:none on file
slides:none on file

Kotlin implements concurrency by pushing behaviour into libraries so code uses one keyword: suspend while async and await are ordinary functions that return deferred as future objects. The compiler turns suspend points into a state machine with resume/resumeWith semantics; Retrofit integrates via a Retrofit call adapter that yields Deferred and an await extension. Coroutines run lightweight workloads (demonstrated with 100,000 coroutines), support channels, cooperative cancellation via Job, and practical helpers like retryIO and lifecycle-aware cancellation.

AI-written summary · about

  1. 0:00Introduction to coroutines
  2. 1:11Why coroutines matter
  3. 3:19Callback hell and solutions
  4. 7:11Async await in Kotlin
  5. 10:43How coroutines work
  6. 16:41Networking with Retrofit
  7. 21:16Coroutine builders explained
  8. 24:46Coroutines vs threads
  9. 27:18Coroutine context details
  10. 29:05Retrying failed operations
  11. 31:11Lifecycle management
  12. 32:57Channels for communication
  13. 37:54Advanced coroutine features
  14. 40:00Kotlin 1.3 coroutines update
~/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.