codelab-kotlin-coroutines icon indicating copy to clipboard operation
codelab-kotlin-coroutines copied to clipboard

suggestion: withContext + CoroutineExceptionHandler

Open gcottenc opened this issue 5 years ago • 0 comments
trafficstars

in https://codelabs.developers.google.com/codelabs/kotlin-coroutines/#6 you write about CoroutineExceptionHandler for uncaught exceptions

in https://codelabs.developers.google.com/codelabs/kotlin-coroutines/#7 you write about withContext and you also exemplify using exceptions

I saw recently that uncaught exceptions thrown within withContext unfortunately don't honour CoroutineExceptionHandler

seems to me a note about that peculiarity would be useful

gcottenc avatar Sep 09 '20 13:09 gcottenc