Future, CompletableFuture

Below described a problem, when several Futures are submitted and you try to wait for them using .get() in a loop. There is no guarantee which will be the order of all these Futures execution. So your main thread will wait until your first Future in a loop will return anything:

Completable future
ofAll
Composing results of futures





Last updated
Was this helpful?