Skip to content 

EventEmitterWithErrorHandling Class

Packages > @fluidframework/telemetry-utils > EventEmitterWithErrorHandling

Event Emitter helper class Any exceptions thrown by listeners will be caught and raised through “error” event. Any exception thrown by “error” listeners will propagate to the caller.

Signature:

export declare class EventEmitterWithErrorHandling<TEvent extends IEvent = IEvent> extends TypedEventEmitter<TEvent> 

Extends: TypedEventEmitter<TEvent>

Methods

List of methods on this class
Method Modifiers Description
emit(event, args)

Methods

emit

Signature:

emit(event: EventEmitterEventType, ...args: any[]): boolean;

Parameters

List of parameters
Parameter Type Description
event EventEmitterEventType
args any[]

Returns:

boolean