Next: release keyword, Previous: request keyword, Up: Event control
The wait
keyword is used to wait for an event. A request must be called before wait, and wait
blocks until the requested event is set. wait
may proceed immediately if the requested event is a state event and already pending (for example, a phone call is already active). wait
has one mandatory argument, which is described below.
The wait keyword can be used, for example, in the following way:
wait Event1