Pauses execution for the specified number of milliseconds. It allows the job to be interrupted or canceled without problems.
Category: | Execution |
Returned data type: | Integer |
Note: | The returned value is a Boolean value where 1= success and 0 = error. |
sleep(duration)
<duration>
an integer representing the number of seconds to pause
The sleep function causes the job to pause for the specified number of milliseconds.
sleep(5000)
Results: The job sleeps for 5 seconds