Registers an event handler that will be called when the specified event is dispatched.
The name of the event to listen for
The function to call when the event occurs
Optional function to filter events based on their arguments
If true, the handler will be removed after being called once
A function that can be called to remove the event handler
Binds an event handler to an operating system event
⚠️ NOTE: Requires an active event loop to process events
See