waitForMultipleFutures

fun <T> waitForMultipleFutures(futures: Collection<Future<T>>, timeoutMillis: Int): Set<Future<T>>(source)

Wait for availability of futures in the collection. Returns set with all futures which have value available for the consumption, i.e. FutureState.COMPUTED.

Since Kotlin

1.3

Parameters

timeoutMillis

the amount of time in milliseconds to wait for the computed future


Deprecated (with error)

Use 'waitForMultipleFutures' top-level function instead

Replace with

waitForMultipleFutures(this, millis)

Since Kotlin

1.3