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