bbaldino
11/30/2020, 10:02 PMval task = myScope.async { ... }
, and then I wait on those deferreds in a select
block. When a task throws, most of the time the exception I catch (around my select) is the actual exception thrown by the task. But sometimes it's a JobCancellationException
with the cause being the actual exception. Is that expected? Or is there something weird going on there?bbaldino
11/30/2020, 10:05 PMerror: kotlinx.coroutines.JobCancellationException: Parent job is Cancelling; job=JobImpl{Cancelled}@436a4e4b
. But when I debug and set a breakpoint, I see the cause
field is set to the actual underyling exception (e.g MyException
)kingsley
12/01/2020, 1:00 AMbbaldino
12/01/2020, 1:11 AMbbaldino
12/01/2020, 1:18 AM