Waits for the selected event to occur.
Optional event mask to react only on certain events
If events occurs, returns a mask of these events. If the timeout expired, returns the Trigger.none
See Implementation
Waits for the selected event to occur.