sysLib.wait

The system function sysLib.wait suspends execution for the specified number of seconds.


sysLib.wait syntax diagram

timeInSeconds

The time can be any numeric item or literal. Fractions of a second down to hundredths of seconds are honored if the number is not an integer.

You can use sysLib.wait when two asynchronously running programs need to communicate through a record in a shared file or database. One program might need to suspend processing until the other program updates the information in the shared record.

 

Example

 sysLib.wait(15); // waits for 15 seconds

Related reference
System words in alphabetical order