Skip to content

Signal

Defined in: signals/Signal.ts:24

Extends

  • Signal<THandler>

Type Parameters

THandler extends (…args) => any

Constructors

new Signal()

new Signal<THandler>(): Signal<THandler>

Returns

Signal<THandler>

Inherited from

TsSignal<THandler>.constructor

Methods

connect()

connect(callback, order): SignalConnection

Defined in: signals/Signal.ts:60

Subscribe to this signal.

Parameters

callback

THandler

This callback will be run when emit() is called.

order

SignalOrder = 'normal'

Handlers with a higher order value will be called later.

Returns

SignalConnection

Overrides

TsSignal.connect


connectNTimes()

connectNTimes(callback, times, order?): SignalConnection

Defined in: signals/Signal.ts:39

Parameters

callback

THandler

times

number

order?

SignalOrder

Returns

SignalConnection


connectOnce()

connectOnce(callback, order?): SignalConnection

Defined in: signals/Signal.ts:26

Parameters

callback

THandler

order?

SignalOrder

Returns

SignalConnection