sleep

View as Markdown

Set the amount of time for the current application to sleep for in milliseconds before continuing to the next action.

sleep
object | integerRequired

An object that accepts the following properties, or an integer value directly.

Properties

sleep.duration
integerRequired

The amount of time to sleep in milliseconds. Must be a positive number. Can also be set to a -1 integer for the sleep to never end.

Possible Values: -1 or any positive number

Examples

Timed Sleep Example

1version: 1.0.0
2sections:
3 main:
4 - sleep: 5000

Forever Sleep Example

1version: 1.0.0
2sections:
3 main:
4 - sleep: -1