Skip to content

Documentation / @finchart/core / index / emitter

Function: emitter() ​

emitter<T>(who?): Emitter<T>

Defined in: packages/core/src/primitives/emitter.ts:43

who names the failing side in the thrown message — "a subscriber" unless the owner says otherwise.

Type Parameters ​

T ​

T

Parameters ​

who? ​

string = "a subscriber"

Returns ​

Emitter<T>