Modifier and Type | Class and Description |
---|---|
static class |
Promise.Completable<S>
A CompletableFuture that is also a Promise.
|
Modifier and Type | Field and Description |
---|---|
static Promise<?> |
Promise.NOOP
Shared instance whose methods are implemented empty,
|
Modifier and Type | Method and Description |
---|---|
static <T> Promise<T> |
Promise.complete(BiConsumer<T,Throwable> fn)
Returns a Promise that, when completed,
invokes the given
BiConsumer function. |
static <T> Promise<T> |
Promise.from(Consumer<T> succeed,
Consumer<Throwable> fail) |
static <T> Promise<T> |
Promise.noop() |
Copyright © 2008–2023 The CometD Project. All rights reserved.