public class FutureUtil extends Object
| Constructor and Description |
|---|
FutureUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> CompletableFuture<T> |
failedFuture(Throwable t) |
static <T> CompletableFuture<T> |
waitForAll(List<CompletableFuture<T>> futures)
Return a future that represents the completion of the futures in the provided list
|
public static <T> CompletableFuture<T> waitForAll(List<CompletableFuture<T>> futures)
futures - public static <T> CompletableFuture<T> failedFuture(Throwable t)
Copyright © 2017–2018 Apache Software Foundation. All rights reserved.