Aliases

  • SignalObject.connect

Arguments

function
required
The callback to register. Keep the same function object for removal.

Returns

SignalConnection
A custom connection with Connected=true.
The callback is scheduled with task.spawn on each firing while Connected is true. Non-function callbacks raise. Related types: Signals types & behavior · SignalObject.

Example