Add a listener for the event.
The event listener callback, the event data passed as parameter
Optionalonlyonce: booleanThe event listener callback will only be triggered the first time the event occurs. (Automatically removed after the
Signal the event.
The event data for the event.
Optionalsafe: booleanCatch exceptions from individual event listeners.
Remove a listener of the event.
The event listener callback to be removed.
When the event is in signaled state run the specified callback. Will be only run once and then automatically removed from the event listeners.
The callback to run when the event is signaled.
Wait once for the event to be signaled
An Event Handle