abstract Signal0(Array<Void ‑> Void>)
package needs.util
from Array<Void ‑> Void> to Array<Void ‑> Void>
import needs.util.Signal
Signal abstract helper class. A simple abstract over an array of listeners/callback functions.
Static methods
staticinline connect (this:Array<Void ‑> Void>, listener:Void ‑> Void):Void
Connects the listener to the signal.
Parameters:
listener | The listener function to connect. |
---|
staticinline disconnect (this:Array<Void ‑> Void>, listener:Void ‑> Void):Void
Disconnects the listener from the signal.
Parameters:
listener | The listener function to disconnect. |
---|
staticinline dispatch (this:Array<Void ‑> Void>):Void
Calls all of the listeners/callback functions connected to the signal.