Wait for an event to occur.
If the event is already signaled, this operation will return without blocking.
The event must be a valid PCREvent. The event must not be destroyed while it is being waited upon.