(Quick Reference)

11.3.2 Event Notification

Version: 3.2.4

11.3.2 Event Notification

The Events trait also provides methods for notifying of events. For example:

notify "myEvent", "myData"
sendAndReceive "myEvent", "myData", {
    println "Got response!"
}