@CompileStatic class FutureTaskPromise<T> extends FutureTask<T> implements Promise<T>
A Promise that is a FutureTask
| Constructor and description |
|---|
FutureTaskPromise(PromiseFactory promiseFactory, Callable<T> callable) |
FutureTaskPromise(PromiseFactory promiseFactory, Runnable runnable, T value) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Promise<T> |
accept(T value) |
|
T |
get() |
|
T |
get(long timeout, TimeUnit unit) |
|
boolean |
isDone() |
|
Promise<T> |
onComplete(Closure callable) |
|
Promise<T> |
onError(Closure callable) |
|
protected void |
set(T t) |
|
protected void |
setException(Throwable t) |
|
Promise<T> |
then(Closure callable) |