public class CompletableFutureKit extends Object
Constructor and Description |
---|
CompletableFutureKit() |
Modifier and Type | Method and Description |
---|---|
static <T> CompletableFuture<List<T>> |
allOf(List<CompletableFuture<T>> cfs) |
static Throwable |
cause(CompletableFuture completableFuture) |
static boolean |
failed(CompletableFuture future) |
static <V> CompletableFuture<V> |
failedFuture(Exception e) |
static boolean |
succeeded(CompletableFuture future) |
public static <V> CompletableFuture<V> failedFuture(Exception e)
public static Throwable cause(CompletableFuture completableFuture)
public static boolean succeeded(CompletableFuture future)
public static boolean failed(CompletableFuture future)
public static <T> CompletableFuture<List<T>> allOf(List<CompletableFuture<T>> cfs)
Copyright © 2019. All rights reserved.