Skip to main content

@webda/coreReadme | API


Class: EventEmitterUtils

Constructors

new EventEmitterUtils()

new EventEmitterUtils(): EventEmitterUtils

Returns

EventEmitterUtils

Methods

elapse()

static elapse(start): void

Display a message if the listener takes too long

Parameters

start: number

Returns

void

Source

packages/core/src/core.ts:81


emit()

static emit(eventEmitter, event, data): boolean

Parameters

eventEmitter: EventEmitter

event: string | number | symbol

data: any

Returns

boolean

Source

packages/core/src/core.ts:46


emitSync()

static emitSync(eventEmitter, event, data): Promise<any[]>

Parameters

eventEmitter: EventEmitter

event: string | number | symbol

data: any

Returns

Promise<any[]>

Source

packages/core/src/core.ts:55