Having received a command, the application might not wish to complete immediately, but may want to wait for something to happen. The simplest thing to wait for is the passing of a timed interval. This is set up by using TASK_PUT_REQUEST(ACT__WAIT,STATUS) to tell the fixed-part a timer is required and using TASK_PUT_DELAY to tell the system how long a time is required. Note that your code has to find out whether it is being called for the first time or not by inquiring the sequence number SEQ.
The time delay can also be used as a timeout facility in conjunction with waiting for input or message receipt.
It is possible to have several actions active at once, each waiting to be called by the fixed-part. Here is a simple example of two actions, each doing a timed reschedule.
Obviously, this application never terminates, but will put out the WAIT message every 5 seconds and the WAIT1 message every 1 second.