~/talk

All the Pitfalls of Coroutines

TalkinFrenchat AndroidMakers by droidcon 2025 · on Thursday, 2025-04-10· at 17:20· [kotlin]
slides:none on file

Covers Kotlin coroutines in Android apps: reviews coroutine basics and correct usage, explains what it means to break structured concurrency, and walks through common and advanced coroutine mistakes that can cause hard-to-debug production issues so developers can detect and avoid them.

AI-written summary · about

  1. 0:00Coroutine pitfalls intro
  2. 2:28Read coroutine docs
  3. 3:52Coroutines vs callbacks
  4. 6:00Coroutine definition
  5. 9:09runBlocking trap on mobile
  6. 9:30Structured concurrency
  7. 12:56Structured concurrency example
  8. 15:03Coroutine internals
  9. 18:13Error handling
  10. 20:17Never ignore CancellationException
  11. 22:49Correct try-catch order
  12. 23:52Infinite loops with await
  13. 25:59Breaking structured concurrency
  14. 27:44Scope misuse
  15. 28:28Don't implement CoroutineScope
  16. 29:54Non-cancellable functions danger
  17. 30:35Unreferenced coroutine scopes
  18. 31:38MediaPlayer memory leak
  19. 34:06Long scopes like LifecycleScope
  20. 35:08Avoid dispatcher blocking
  21. 37:57Common dispatcher errors
  22. 38:17Missing suspend API
  23. 40:44Errors in callbacks
  24. 41:28Delays during sleep
  25. 42:09Large file transfers
  26. 43:34Best practices recap
  27. 43:56Q&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.