scottiedog45
11/03/2019, 3:22 PMval scope = CoroutineScope(errorHandler)
scope.launch {
throw SomeSillyException()
}
val scope = CoroutineScope()
scope.launch(errorHandler) {
throw SomeSillyException()
}
Dominaezzz
11/03/2019, 3:43 PMerrorHandler
is notified and that's it.scottiedog45
11/03/2019, 3:43 PMDominaezzz
11/03/2019, 3:45 PMscottiedog45
11/03/2019, 3:47 PMstreetsofboston
11/03/2019, 4:35 PMCoroutineScope(errorHandler)
variation, since every launch
from that scope will report its unhandled exceptions in the handler.
For the second variation, only for that one particular launch
will report its unhandled in the handler...elizarov
11/04/2019, 9:46 AMscottiedog45
11/04/2019, 7:14 PM