Vikas Singh
08/24/2022, 9:13 AMSam
08/24/2022, 9:18 AMasync
fails it also causes its parent job to failSam
08/24/2022, 9:20 AMasync
is the launch
job, so when the async
job fails, the launch
job fails too. It might never reach the catch
because the job could fail before it got there.Sam
08/24/2022, 9:21 AMasync
job has no parent job so the failure doesn’t propagate anywhere until you call await()
.Vikas Singh
08/24/2022, 9:55 AMSam
08/24/2022, 10:28 AMasync
. The call to async
just starts the job and then returns immediately. The error happens later, in the background, and propagates directly to the parent job.