@groovy.transform.CompileStatic class BoundPromise
A bound promise is a promise which is already resolved and doesn't require any asynchronous processing to calculate the value
Constructor and description |
---|
BoundPromise
(java.lang.Object value) |
Type | Name and description |
---|---|
java.lang.Object |
get() |
java.lang.Object |
get(long timeout, java.util.concurrent.TimeUnit units) |
Promise<T> |
leftShift(groovy.lang.Closure callable) |
Promise<T> |
onComplete(groovy.lang.Closure callable) |
Promise<T> |
onError(groovy.lang.Closure callable) |
Promise<T> |
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() |
Groovy Documentation