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

Static methods

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

Connects the listener to the signal.

Parameters:

listener

The listener function to connect.

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

Disconnects the listener from the signal.

Parameters:

listener

The listener function to disconnect.

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

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

Parameters:

data0

The first parameter used for the dispatch.

data1

The second parameter used for the dispatch.