~/talk

Why exception handling with Kotlin Coroutines is hard and how to master it!

TalkinRussianat AppsFest 2020 · 2020-10-30..10-31· [kotlin, concurrency]
links:none on file
slides:none on file

Explains why exception handling with Kotlin Coroutines is more complex than the happy path and what to consider to handle errors correctly. Covers when to use try-catch versus CoroutineExceptionHandler, differences between top-level coroutines started with launch and async, behaviors of coroutineScope{} and supervisorScope{}, and the need to re-throw CancellationException to avoid subtle bugs.

AI-written summary · about

  1. 0:00Introduction
  2. 2:21Why coroutines
  3. 3:43Exceptions in regular code
  4. 5:28Coroutine exception problems
  5. 8:01Task hierarchy and exception propagation
  6. 10:18Context-based exception handling
  7. 13:30Try-catch vs handler
  8. 16:46Cancellation and structured concurrency
  9. 19:34Error logging without losing control
  10. 21:03CancellationException handling
  11. 24:23CancellationException problems
  12. 25:51Exceptions in ASH and SupervisorScope
  13. 27:59Scope and SupervisorScope
  14. 30:27Final recommendations and cheat sheet
  15. 33:20Exception handling cheat sheet
  16. 37:21Q&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.