~/talk

Efficient Async with Kotlin Coroutines

Talkat GDG DevFest Ahmedabad 2018 · 2018-11-24..11-25· [android]
links:none on file
slides:none on file

Shows practical Kotlin coroutines for Android: uses Retrofit returning Deferred/Response, demonstrates CoroutineScope tied to Activity with a Job cancelled in onDestroy so child coroutines stop, contrasts launch vs async (Deferred) and suspending functions vs Thread.sleep, uses withContext(Dispatchers.Main) and Dispatchers.IO, and points out IO can run 64+ coroutines concurrently. Delivers a working GitHub-API demo app, covers exception handling via CoroutineExceptionHandler, and proves coroutines reduce callback and threading boilerplate.

AI-written summary · about

  1. 0:00Start
  2. 0:08Audience Profiles
  3. 6:33Learning Code
  4. 13:19Suspending Functions
  5. 19:22Dispatchers
  6. 26:54Exception Handler
  7. 28:22Api Level Error
  8. 30:00Try-Catch
  9. 32:44Resources
~/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.