Dispose the event emitter and clear all listeners. After calling dispose the emitter is no longer usable and all calls to EventEmitter.fire or EventEmitter.listen will be ignored.
Fire an event to all registered listeners with the provided data
Data to pass to the event listeners
Optionaloptions: { throwErrors?: boolean }Options for firing the event
void
Register a listener that listens for events being fired by the emitter
Listener to register
OptionalthisArg: anyOptional thisArg to use when calling the listener
A function that can be called to unregister the listener
Lightweight event emitter implementation
Example