Skip to content

API Reference / @gtkx/runtime / disconnectSignal

Variable: disconnectSignal

const disconnectSignal: (instance, handlerId) => void

Defined in: packages/runtime/dist/signal.d.ts:35

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

Id connectSignal returned for the handler.

Returns

void

Released under the MPL-2.0 License.