Waits until the event occurs.
Calling wait() for an event that has already occurred is a no-op.
See Implementation
Waits until the event occurs.
Calling wait() for an event that has already occurred is a no-op.