An interface for an object on which you can listen to events.
Adds an event listener for a specific event.
The type of the event key.
The event to listen to.
The callback function to be invoked when the event is emitted.
An EventHandle with a remove method to unsubscribe the listener.
remove
An interface for an object on which you can listen to events.