Base class for objects that fire named events. Listener arguments are passed by position.
Adds a listener for an event. Adding the same function twice for one event has no effect.
Event name.
Listener, called with the event arguments.
Optional
Listener options.
When true, the listener is removed after it runs once.
Removes every listener of every event.
Removes a listener, or every listener of the event when fn is omitted.
fn
The function that was passed to addEventListener.
A listener that throws does not affect the others; the error is reported through logger.error.
Like trigger, but awaits the Promise returned by each listener in turn; a failing listener does not affect the others.
Base class for objects that fire named events. Listener arguments are passed by position.