java.lang.Object
com.machinezoo.hookless.ReactiveFuture<T>
- Type Parameters:
-
T- type of result returned by the future
@StubDocs @ApiIssue("Get with timeout depends on reactive time, which means it will be available only after time is in std.") public class ReactiveFuture<T> extends Object
Reactive wrapper for
CompletableFuture.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleandone()booleanfailed()get()static CompletableFuture<Void>runReactive(Runnable runnable) static CompletableFuture<Void>runReactive(Runnable runnable, Executor executor) static <T> CompletableFuture<T>supplyReactive(Supplier<T> supplier) static <T> CompletableFuture<T>supplyReactive(Supplier<T> supplier, Executor executor) toString()static <T> ReactiveFuture<T>wrap(CompletableFuture<T> completable)