ck
02/11/2019, 11:14 AMGlobalScope.launch
? A CoroutineExceptionHandler
?gildor
02/11/2019, 11:26 AMck
02/11/2019, 11:40 AMClassA
calls ClassB#functionA
and ClassB#functionA
throws an Exception inside GlobalScope.launch
which should be handled by ClassA
.
Instead the App crashes because the default Thread.uncaughtExceptionHandler
is used.Dico
02/11/2019, 12:13 PMlaunch
is non-blocking.ck
02/11/2019, 1:09 PMDico
02/11/2019, 1:11 PMgildor
02/11/2019, 1:28 PMgildor
02/11/2019, 1:29 PMgildor
02/11/2019, 1:31 PMansman
02/11/2019, 4:42 PMasync
over launch
. launch
is like fire and forget (though you can wait for it to complete)gildor
02/11/2019, 5:13 PM