default Promise<T> |
Promise.complete(Try<? extends T> value) |
Completes this Promise with the given value .
|
default Promise<T> |
Promise.completeWith(Future<? extends T> other) |
Completes this Promise with the given Future , once that Future is completed.
|
static <T> Promise<T> |
Promise.failed(java.lang.Throwable exception) |
|
static <T> Promise<T> |
Promise.failed(java.util.concurrent.Executor executor,
java.lang.Throwable exception) |
Creates a failed Promise , backed by the given Executor .
|
default Promise<T> |
Promise.failure(java.lang.Throwable exception) |
Completes this Promise with the given exception .
|
static <T> Promise<T> |
Promise.fromTry(Try<? extends T> result) |
|
static <T> Promise<T> |
Promise.fromTry(java.util.concurrent.Executor executor,
Try<? extends T> result) |
Creates a Promise from a Try , backed by the given Executor .
|
static <T> Promise<T> |
Promise.make() |
|
static <T> Promise<T> |
Promise.make(java.util.concurrent.Executor executor) |
Makes a Promise that isn't fulfilled yet, backed by the given Executor .
|
static <T> Promise<T> |
Promise.narrow(Promise<? extends T> promise) |
Narrows a widened Promise<? extends T> to Promise<T>
by performing a type-safe cast.
|
default Promise<T> |
Promise.success(T value) |
Completes this Promise with the given value .
|
static <T> Promise<T> |
Promise.successful(java.util.concurrent.Executor executor,
T result) |
Creates a succeeded Promise , backed by the given Executor .
|
static <T> Promise<T> |
Promise.successful(T result) |
|
default Promise<T> |
Promise.tryCompleteWith(Future<? extends T> other) |
Attempts to complete this Promise with the specified Future , once that Future is completed.
|