|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovyx.gpars.actor.impl.MessageStream
gpars.dataflow.DataCallback
final class DataCallback extends MessageStream
A helper class enabling the 'whenBound()' functionality of a DataFlowVariable. An actor that waits asynchronously on the DFV to be bound. Once the DFV is bound, upon receiving the message the actor runs the supplied closure / code with the DFV value as a parameter.
Constructor Summary | |
DataCallback(groovy.lang.Closure code)
@param code The closure to run |
Method Summary | |
---|---|
MessageStream
|
send(Object message)
Sends a message back to the DataCallback. |
Constructor Detail |
---|
DataCallback(groovy.lang.Closure code)
code
- The closure to run
Method Detail |
---|
@Override MessageStream send(Object message)
Groovy Documentation