Signal abstract helper class. A simple abstract over an array of listeners/callback functions.

Static methods

staticinline connect (this:Array<T ‑> Void>, listener:T ‑> Void):Void

Connects the listener to the signal.

Parameters:

listener

The listener function to connect.

staticinline disconnect (this:Array<T ‑> Void>, listener:T ‑> Void):Void

Disconnects the listener from the signal.

Parameters:

listener

The listener function to disconnect.

staticinline dispatch (this:Array<T ‑> Void>, data0:T):Void

Calls all of the listeners/callback functions connected to the signal.

Parameters:

data0

The parameter used for the dispatch.