Lists all event names with active listeners.
Array of event names that have registered listeners
Creates a promise that resolves when the specified event is emitted.
Event name to wait for
Optionaloptions: number | WaitOptions
Maximum time to wait in milliseconds (default: 60 seconds), or { timeout, signal }
Promise that resolves with the event payload when emitted
Creates a promise that resolves when an event matching the predicate is emitted.
Event name to wait for
Function that evaluates if the event payload should resolve the promise
Optionaloptions: number | WaitOptions
Maximum time to wait in milliseconds (default: 60 seconds), or { timeout, signal }
Promise that resolves with the event payload when predicate matches
Removes one or more event listeners.
Number of listeners removed
listener is provided: unregisters it if it exists, or no-op if it doesn'tlistener is not provided but name is: unregisters all listeners for that eventname is not provided: unregisters all listeners for all eventsremoveListener event is emitted for every listener that is removedRegisters a listener that will be called exactly once when the event is emitted.
Unregister function to remove the listener before it's triggered
Registers a listener that will be called once when an event matching the predicate is emitted.
Unregister function to remove the listener before it's triggered
Typed event emitter interface similar to EventEmitter from Node.js standard library. Provides type-safe event handling with generics.