Skip to content

API Reference / @gtkx/runtime / disconnectSignal

Function: disconnectSignal() ​

disconnectSignal(instance, handlerId): void

Defined in: packages/runtime/src/signal.ts:334

Disconnects the handler an instance connected under the given id, and forgets the connection.

Parameters ​

instance ​

object

Emitter the handler was connected to.

handlerId ​

number | bigint

Id connectSignal returned for the handler.

Returns ​

void