@CompileStatic class CompletableFuturePromise<T> extends java.util.concurrent.CompletableFuture<T> implements Promise<T>
A Grails Promise backed by the JDK completion-stage implementation.
T - the promised value type| Type | Name and description |
|---|---|
java.util.concurrent.Executor |
executor |
| Constructor and description |
|---|
CompletableFuturePromise(java.util.concurrent.Executor executor) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Promise<T> |
accept(T value) |
|
java.util.concurrent.Executor |
defaultExecutor() |
<T> |
static CompletableFuturePromise<T> |
fromStage(java.util.concurrent.CompletionStage<T> stage, java.util.concurrent.Executor executor) |
<U> |
CompletableFuturePromise<U> |
newIncompleteFuture() |
|
Promise<T> |
onComplete(Closure<T> callable) |
|
Promise<T> |
onError(Closure<T> callable) |
|
Promise<T> |
then(Closure<T> callable) |
|
static java.lang.Throwable |
unwrap(java.lang.Throwable failure) |