@CompileStatic class SynchronousPromise<T> extends Object implements Promise<T>
A promise that executes synchronously, in the same thread as the creator
| Constructor and description |
|---|
SynchronousPromise(Closure<T> 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<T> |
onComplete(Closure callable) |
|
Promise<T> |
onError(Closure callable) |
|
Promise<T> |
then(Closure callable) |
Groovy Documentation