public final class CompletableFutures extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> java.util.stream.Collector<CompletableFuture<T>,?,CompletableFuture<List<T>>> |
toFutureList()
Collector which converts a stream of CompletableFuture<T> into a CompletableFuture<List<T>>
|
public static <T> java.util.stream.Collector<CompletableFuture<T>,?,CompletableFuture<List<T>>> toFutureList()
T - The type of value returned by each CompletableFuture in the stream.CompletableFuture which completes with a list of all the values returned by futures in the
stream, once they have all completed, or fails if any future in the stream fails.Copyright © 2017. All Rights Reserved.