An event signal with no arguments to send
Constructor
Methods
around ():SimpleEventSignal0<E>
Triggered after 'before' and after the 'signal' // TODO: implement event interrupt for around
hasListener (cb:Void ‑> Void):Bool
Check if the callback is already registered to this signal
Parameters:
cb | The callback function to check |
|---|
Returns:
true if the callback function is registered to this signal
listen (cb:Void ‑> Void):Void
Register a callback to execute if the signal is dispatched
Parameters:
cb | The callback function to execute |
|---|
observe (cb:Void ‑> Void):Void
Register a callback to execute if the signal is dispatched
Parameters:
cb | The callback function to register |
|---|
once (cb:Void ‑> Void):Void
Registers a callback to execute if the signal is dispatched Upon dispatch, the callback will automatically be unlistened
Parameters:
cb | The callback function to execute once |
|---|
unlisten (cb:Void ‑> Void):Void
Unregister the callback from this signal
Parameters:
cb | The callback function to unregister |
|---|
unobserve (cb:Void ‑> Void):Void
Unregister the callback from this signal
Parameters:
cb | The callback function to unregister |
|---|