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