https://kotlinlang.org logo
#android
Title
# android
d

dave08

03/16/2020, 1:56 PM
It seems like WorkManager's
CoroutineWorker
uses
launch
to run
doWork
, does that mean that a crash can't be caught with a regular try/catch? Does a
CoroutineExceptionHandler
need to be installed for that? If so, where?
a

Adam Powell

03/16/2020, 2:05 PM
You can use a regular try/catch in doWork itself
d

dave08

03/16/2020, 2:10 PM
Ok, thanks! I guess I still have to hunt that crash since I have a try/catch there... 🤔
6 Views