Get the event data or null if the event is in unsignaled state.
The event signaled state.
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.
Reset the event to unsignaled state.
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
A Manual Reset Event - the event stays in signaled state until reset.