@CompileStatic class BoundPromise<T> extends Object implements Promise<T>
A bound promise is a promise which is already resolved and doesn't require any asynchronous processing to calculate the value
| Type | Name and description |
|---|---|
T |
value |
| Constructor and description |
|---|
BoundPromise(T value) |
| 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<T> |
onComplete(Closure callable) |
|
Promise<T> |
onError(Closure callable) |
|
Promise<T> |
then(Closure callable) |
Groovy Documentation