awaitAll

fun <T> awaitAll(vararg deferred: Deferred<T>): List<T>(source)

Awaits in argument order; a failed await throws without cancelling the remaining tasks.


fun <T> awaitAll(deferred: List<Deferred<T>>): List<T>(source)

Awaits in list order and preserves that order in the returned values.