public final class CompletableFutures
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> java.util.concurrent.CompletableFuture<java.util.List<T>> |
allAsList(java.util.Collection<? extends java.util.concurrent.CompletableFuture<? extends T>> futures) |
static <T> java.util.concurrent.CompletableFuture<T> |
failedFuture(java.lang.Throwable t)
Creates a
CompletableFuture which will throw the given exception on the invocations
of get() |
public static <T> java.util.concurrent.CompletableFuture<T> failedFuture(java.lang.Throwable t)
CompletableFuture
which will throw the given exception on the invocations
of get()public static <T> java.util.concurrent.CompletableFuture<java.util.List<T>> allAsList(java.util.Collection<? extends java.util.concurrent.CompletableFuture<? extends T>> futures)