Interface BasicFuture<V>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault void
cancel()
default BasicFuture
<V> static <V> BasicFuture
<V> completedTask
(V value) static void
static <V> V
static <V> BasicFuture
<V> failedTask
(Throwable exception) default <U> BasicFuture
<U> flatMap
(Function<V, BasicFuture<U>> mapper) join()
default <U> BasicFuture
<U> static <V> BasicFuture
<V> spawnTaskOn
(Callable<V> callable, Executor executor) default BasicFuture
<Void> thenAccept
(Consumer<V> consumer) default BasicFuture
<V> uncatch()
Spawns a new virtual thread that joins this future and does not attempt to catch exceptions.static <V> BasicFuture
<V> wrap
(CompletableFuture<V> future) static <V> BasicFuture
<V>
-
Field Details
-
COMPLETED_NULL
-
-
Method Details
-
join
-
cancel
default void cancel() -
cancelOnInterrupt
-
uncatch
Spawns a new virtual thread that joins this future and does not attempt to catch exceptions. If one is thrown, the default uncaught exception handler for the VM will be invoked.- Returns:
- this future.
-
map
-
flatMap
-
thenAccept
-
completedTask
-
failedTask
-
wrap
-
wrap
-
spawnTaskOn
-
executeOn
-
executeOn
-