@groovy.transform.CompileStatic class GparsPromise
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, groovy.lang.Closure callable) |
Type Params | Return Type | Name and description |
---|---|---|
|
Promise<T> |
accept(T value) |
|
boolean |
cancel(boolean mayInterruptIfRunning) |
|
T |
get() |
|
T |
get(long timeout, java.util.concurrent.TimeUnit units) |
|
boolean |
isCancelled() |
|
boolean |
isDone() |
|
Promise<T> |
leftShift(groovy.lang.Closure callable) |
|
Promise |
onComplete(groovy.lang.Closure callable) |
|
Promise |
onError(groovy.lang.Closure callable) |
|
Promise |
then(groovy.lang.Closure callable) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |