Join Slack
Powered by
How can I catch errors thrown from/in a `launch` c...
# coroutines
k
koufa
02/04/2019, 2:04 PM
How can I catch errors thrown from/in a
launch
coroutine? Is it only possible by using
coroutineScope
and add a try catch around it?
y
yousefa2
02/04/2019, 2:12 PM
you can use
https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-exception-handler/
... it can be passed as part of your
coroutineContext
2
Views
Open in Slack
Previous
Next