Emits the given event with the specified arguments.
The name of the event to emit.
The arguments to pass to the event listeners.
Retrieves the listeners associated with the given event key.
The event key to retrieve the listeners for.
An array of listeners associated with the given event key.
Subscribes a callback function to the given event name. The callback function will be triggered only once when the event is emitted.
The name of the event to subscribe to.
The callback function to be executed when the event is emitted.
Subscribes a callback function to the specified event name.
The key of the event.
The callback function to be executed when the event is triggered.
Removes a callback function from the list of event listeners for the specified event.
The key of the event to unsubscribe from.
The callback function to remove from the event listeners.
Clears all event handlers registered for the current object.
Class representing an event emitter.