Skip to content

API Reference / @gtkx/runtime / offSignal

Function: offSignal()

offSignal(instance, signal, handler): void

Defined in: runtime/dist/listeners.d.ts:34

Disconnects a handler previously connected with onSignal or onceSignal. Does nothing if the handler is not currently connected.

Parameters

instance

SignalConnectable

The object the handler was connected to.

signal

string

The signal name the handler was connected to.

handler

SignalHandler

The handler to disconnect.

Returns

void

Released under the MPL-2.0 License.