wait For Multiple Futures
Content copied to clipboard
fun <T> waitForMultipleFutures(futures: Collection<Future<T>>, timeoutMillis: Int): Set<Future<T>>
Content copied to clipboard
Wait for availability of futures in the collection. Returns set with all futures which have value available for the consumption, i.e. FutureState.COMPUTED.
Parameters
timeout Millis
the amount of time in milliseconds to wait for the computed future