Sleep

Pause a DMScript execution.

Sleep pauses DMScript execution for the specified number of seconds. If used inside a parallel block, only the parallel thread is suspended for the duration of the specified delay – the other threads continue execution.

sleep takes a single named parameter:

Parameter Description
delay The number of seconds to wait

Example

Suspend the current thread for 30 seconds

sleep(delay: 30);
Last modified December 18, 2020: reorganzise sections (85d5aef)