ReadonlynameUnique name identifying this provider implementation Used for debugging and logging purposes
Removes all registered listeners from all events
Removes all listeners for a specific event type
The event class/constructor to clear
Returns the underlying event dispatcher implementation Useful for advanced use cases or testing
The internal data structure (implementation-specific)
Checks if a specific listener is registered for an event type
The event class/constructor
The listener class/symbol
true if the listener is already registered
Checks if any listeners are registered for an event type
The event class/constructor to check
true if at least one listener is registered
Registers a listener for a specific event type
The event class/constructor to listen for
The listener class/symbol to invoke when event is dispatched
Interface for Event Dispatcher Provider
This abstraction allows plugging different event dispatching systems (e.g., custom implementation, EventEmitter, RxJS, etc.)
Example