Jan Skrasek
05/07/2019, 12:24 PM(0..4)
.map { async { .... } }
.forEach {
try {
it.await()...process
} catch() {}
}
Which coroutine scope builder I should use? Using coroutineScope {}
or supervisorScope {}
would cancel the parent or siblings respectively.Dias
05/07/2019, 12:58 PMnulldev
05/07/2019, 1:25 PMsupervisorScope
. If you want the asyncs to be completely isolated from the parent, use GlobalScope
.Jan Skrasek
05/07/2019, 1:27 PM