Skip to content

API Reference / @gtkx/runtime / offSignal

Function: offSignal() ​

offSignal(instance, signal, handler): void

Defined in: packages/runtime/dist/listeners.d.ts:40

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