public class CompletableFutureUtil extends Object
| Constructor and Description |
|---|
CompletableFutureUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
completeSomehow(CompletableFuture<T> outcome,
T result,
Throwable throwable) |
static <T> CompletableFuture<T> |
failedFuture(Throwable t) |
static <T> CompletableFuture<T> |
tap(CompletableFuture<T> input,
BiConsumer<T,Throwable> tapper) |
static Throwable |
unwrap(Throwable throwable) |
public static <T> CompletableFuture<T> failedFuture(Throwable t)
public static <T> CompletableFuture<T> tap(CompletableFuture<T> input, BiConsumer<T,Throwable> tapper)
public static <T> void completeSomehow(CompletableFuture<T> outcome, T result, Throwable throwable)
Copyright © 2021. All rights reserved.