Package org.eclipse.jetty.util
Interface Promise.Invocable<R>
- Type Parameters:
R- The result type
- All Superinterfaces:
BiConsumer<R,,Throwable> Invocable,Promise<R>
- All Known Subinterfaces:
Blocker.Promise<C>
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 org.eclipse.jetty.util.thread.Invocable
Invocable.Callable, Invocable.InvocationType, Invocable.ReadyTask, Invocable.TaskNested classes/interfaces inherited from interface org.eclipse.jetty.util.Promise
Promise.Adapter<U>, Promise.Completable<S>, Promise.Invocable<R>, Promise.Task<T>, Promise.Wrapper<W> -
Field Summary
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking, NOOP -
Method Summary
Methods inherited from interface java.util.function.BiConsumer
andThenMethods inherited from interface org.eclipse.jetty.util.thread.Invocable
getInvocationTypeMethods inherited from interface org.eclipse.jetty.util.Promise
completeWith, failed, succeeded
-
Method Details
-
accept
- Specified by:
acceptin interfaceBiConsumer<R,Throwable>
-