|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgroovyx.gpars.actor.impl.MessageStream
gpars.dataflow.DataCallback
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)
|
|
| Method Summary | |
|---|---|
MessageStream
|
send(Object message)
Sends a message back to the DataCallback. |
| Constructor Detail |
|---|
public DataCallback(groovy.lang.Closure code)
| Method Detail |
|---|
@Override public MessageStream send(Object message)
Groovy Documentation