Uses of Interface
org.cometd.bayeux.Promise
-
Uses of Promise in org.cometd.bayeux
Classes in org.cometd.bayeux that implement Promise Modifier and Type Class Description static class
Promise.Completable<S>
A CompletableFuture that is also a Promise.Fields in org.cometd.bayeux declared as Promise Modifier and Type Field Description static Promise<?>
Promise. NOOP
Shared instance whose methods are implemented empty,Methods in org.cometd.bayeux that return Promise Modifier and Type Method Description static <T> Promise<T>
Promise. complete(BiConsumer<T,Throwable> fn)
Returns a Promise that, when completed, invokes the givenBiConsumer
function.static <T> Promise<T>
Promise. from(Consumer<T> succeed, Consumer<Throwable> fail)
static <T> Promise<T>
Promise. noop()