wait_for()
Wait for the selected event to happen before proceeding.
Arguments
| Argument | Type | Description |
|---|---|---|
event
|
WaitFor
| The event to wait for before proceeding. |
WaitFor is a simple enum with two variants representing the event to wait for.
Example usage
The following test from the source code demonstrates the behaviour of the .wait_for_() method in a variety of situations.