public final class HawaiiAsyncUtil
extends java.lang.Object
CompletableFuture
.
All exceptions are wrapped in a HawaiiTaskExecutionException
.
Modifier and Type | Method and Description |
---|---|
static <T> T |
get(java.util.concurrent.CompletableFuture<T> future)
Delegates to
CompletableFuture.get() . |
static <T> T |
get(java.util.concurrent.CompletableFuture<T> future,
java.lang.Long timeout,
java.util.concurrent.TimeUnit unit)
Delegates to
CompletableFuture.get(long, TimeUnit) }. |
static <T> T |
getNow(java.util.concurrent.CompletableFuture<T> future,
T valueIfAbsent)
Delegates to
CompletableFuture.getNow(Object) . |
public static <T> T get(@NotNull java.util.concurrent.CompletableFuture<T> future)
CompletableFuture.get()
.public static <T> T get(@NotNull java.util.concurrent.CompletableFuture<T> future, @NotNull java.lang.Long timeout, @NotNull java.util.concurrent.TimeUnit unit)
CompletableFuture.get(long, TimeUnit)
}.public static <T> T getNow(@NotNull java.util.concurrent.CompletableFuture<T> future, T valueIfAbsent)
CompletableFuture.getNow(Object)
.