An event subscriber
Type Params | Return Type | Name and description |
---|---|---|
|
Subscription |
on(java.lang.CharSequence event, groovy.lang.Closure subscriber) Listen for an event |
|
Subscription |
subscribe(java.lang.CharSequence event, groovy.lang.Closure subscriber) Listen for an event |
|
Subscription |
subscribe(java.lang.CharSequence event, Subscriber subscriber) Listen for an event |
|
Subjects |
unsubscribeAll(java.lang.CharSequence event) Clear all listeners for the given event |
Listen for an event
event
- The eventsubscriber
- The listenerListen for an event
event
- The eventsubscriber
- The listenerListen for an event
event
- The eventsubscriber
- The listenerClear all listeners for the given event
event
- The even id