|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectorg.grails.async.factory.SynchronousPromise
@groovy.transform.CompileStatic class SynchronousPromise extends java.lang.Object
A promise that executes synchronously, in the same thread as the creator
| Property Summary | |
|---|---|
groovy.lang.Closure |
callable
|
java.lang.Object |
value
|
| Constructor Summary | |
SynchronousPromise(groovy.lang.Closure callable)
|
|
| Method Summary | |
|---|---|
java.lang.Object
|
get()
|
java.lang.Object
|
get(long timeout, java.util.concurrent.TimeUnit units)
|
Promise
|
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 java.lang.Object | |
|---|---|
| java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |
| Property Detail |
|---|
groovy.lang.Closure callable
java.lang.Object value
| Constructor Detail |
|---|
SynchronousPromise(groovy.lang.Closure callable)
| Method Detail |
|---|
java.lang.Object get()
java.lang.Object get(long timeout, java.util.concurrent.TimeUnit units)
Promise leftShift(groovy.lang.Closure callable)
Promise onComplete(groovy.lang.Closure callable)
Promise onError(groovy.lang.Closure callable)
Promise then(groovy.lang.Closure callable)
Groovy Documentation