Waits until the event occurs or the specified timeout expires.
Calling wait() for an event that has already occurred is a no-op.
Whether the event was triggered before the timeout expired.
See Implementation
Waits until the event occurs or the specified timeout expires.
Calling wait() for an event that has already occurred is a no-op.