Interface Promise.Invocable<R>
- Type Parameters:
R- The result type
- All Superinterfaces:
BiConsumer<R, Throwable>, Invocable, Promise<R>
- All Known Subinterfaces:
Blocker.Promise<C>
public static interface Promise.Invocable<R>
extends Invocable, Promise<R>, BiConsumer<R, Throwable>
An
Invocable Promise that provides the
Invocable.InvocationType of calls to Promise.succeeded(Object).
Also provides the BiConsumer interface as a convenient for working
with CompletableFuture.-
Nested Class Summary
Nested classes/interfaces inherited from interface Invocable
Invocable.Callable, Invocable.InvocationType, Invocable.ReadyTask, Invocable.TaskNested classes/interfaces inherited from interface Promise
Promise.Adapter<U>, Promise.Completable<S>, Promise.Invocable<R>, Promise.Task<T>, Promise.Wrapper<W> -
Field Summary
Fields inherited from interface Invocable
__nonBlocking, NOOP -
Method Summary
Methods inherited from interface BiConsumer
andThenMethods inherited from interface Invocable
getInvocationTypeMethods inherited from interface Promise
completeWith, failed, succeeded
-
Method Details
-
accept
-