awaitAll

suspend fun <T> List<Future<T>>.awaitAll(): List<T>(source)

Awaits the completion of all the futures in the list without blocking the event loop, and fails as soon as any future fails.

See also

Future.await
Future.all
awaitAll