@CompileStatic class GparsPromise<T> extends Object implements Promise<T>
Implementation of Promise interface for Gpars
| Type | Name and description |
|---|---|
Promise |
internalPromise |
PromiseFactory |
promiseFactory |
| Constructor and description |
|---|
GparsPromise(PromiseFactory promiseFactory, Promise internalPromise) |
GparsPromise(PromiseFactory promiseFactory, Closure callable) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Promise<T> |
accept(T value) |
|
boolean |
cancel(boolean mayInterruptIfRunning) |
|
T |
get() |
|
T |
get(long timeout, TimeUnit units) |
|
boolean |
isCancelled() |
|
boolean |
isDone() |
|
Promise<T> |
leftShift(Closure callable) |
|
Promise |
onComplete(Closure callable) |
|
Promise |
onError(Closure callable) |
|
Promise |
then(Closure callable) |
Groovy Documentation