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
Method | Modifiers | Description |
---|---|---|
emit(event, args) |
Methods
emit
Signature:
emit(event: EventEmitterEventType, ...args: any[]): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
event | EventEmitterEventType | |
args | any[] |
Returns:
boolean