sleep
Set the amount of time for the current application to sleep for in milliseconds before continuing to the next action.
An object that accepts the sleep parameters.
sleep Parameters
0The 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, <Any Positive Number>]
Examples
Timed Sleep Example
- YAML
- JSON
version: 1.0.0
sections:
main:
- sleep: 5000
{
"version": "1.0.0",
"sections": {
"main": [
{
"sleep": 5000
}
]
}
}
Forever Sleep Example
- YAML
- JSON
version: 1.0.0
sections:
main:
- sleep: -1
{
"version": "1.0.0",
"sections": {
"main": [
{
"sleep": -1
}
]
}
}