neworldlt
10/07/2019, 10:04 AMawait()
still cancels parent job? Let assume this example: https://pl.kotl.in/DlU1vaR2T. If you comment out await()
part, launch's job will stay activelouiscad
10/07/2019, 10:32 AMcoroutineScope
(handling exceptions/errors outside of it). async
is meant for "paralellization". The goal is to cancel concurrent coroutines of the scope if one fails, so you don't keep doing work that will eventually be dropped.
That is structured concurrency benefits… and gotchas. But the efficiency and corectness benefits largely outweigh that gotcha.neworldlt
10/07/2019, 10:46 AMcoroutineScope
. Wrapping parallelization into local scope looks good approach