Aliases

  • SignalObject.once

Arguments

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

Returns

SignalConnection
A custom connection that disconnects before its first callback.
The connection disconnects before its first invocation is scheduled, preventing another firing from scheduling it again. Related types: Signals types & behavior · SignalObject.

Example