~/talk

Asynchronous programming using Coroutines

TalkinPortugueseat AndroidFest Campinas 2018 · 2018-10-19..10-20· [android]
links:none on file
slides:none on file

Compares callback-based and RxJava approaches to Kotlin coroutines, showing how suspend functions and async/await make nested callbacks read like sequential code. Covers a Retrofit extension that converts callback APIs into suspending calls via continuations, demonstrates concurrent work (parallel image downloads), explains cancellation issues (non-cooperative blocking vs using isActive or suspend points like delay), and reviews coroutine builders (launch, runBlocking, withContext) plus running tests synchronously by swapping the main builder.

AI-written summary · about

  1. 0:00Introduction
  2. 2:31Synchronous code problems
  3. 7:08What are coroutines
  4. 9:18Launch coroutines
  5. 12:11Async coroutines
  6. 15:51runBlocking coroutines
  7. 17:15Execution contexts
  8. 18:40Concurrent coroutines
  9. 21:54Coroutine advantages
  10. 26:58How they work under the hood
  11. 33:03Coroutine extensions
  12. 35:59Testing coroutines
  13. 40:48Q&A
~/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.