elizarov
01/26/2017, 6:57 PMlist : List<Future<X>>
, then all
is simply list.forEach { it.await() }
. The other combinator, any
is more complex. There is no read-to-use primitive in kotlinx.coroutines
yet to express it concisely. The plan is to provide a universal select
operator, in which case you'll be able to write any
as select { list.forEach { it.onAwait() } }