...
/CompletableFuture: Combining Results of Futures
CompletableFuture: Combining Results of Futures
This lesson explains how we can combine the results of an arbitrary number of futures together.
We'll cover the following...
In the previous lesson, we used the thenCombine()
and thenCompose()
methods to combine the result of two futures.
If we need to run multiple futures in parallel and combine their result then we can use the allOf()
and anyOf()
methods.