Class: EventEmitterUtils
Constructors
new EventEmitterUtils()
new EventEmitterUtils():
EventEmitterUtils
Returns
Methods
elapse()
static
elapse(start
):void
Display a message if the listener takes too long
Parameters
• start: number
Returns
void
Source
emit()
static
emit(eventEmitter
,event
,data
):boolean
Parameters
• eventEmitter: EventEmitter
• event: string
| number
| symbol
• data: any
Returns
boolean
Source
emitSync()
static
emitSync(eventEmitter
,event
,data
):Promise
<any
[]>
Parameters
• eventEmitter: EventEmitter
• event: string
| number
| symbol
• data: any
Returns
Promise
<any
[]>