Ext.Sleep()

(SBM On-Premise/PaaS only) Freezes script execution and the thread that called the script for the specified number of milliseconds.

Function Signature

 void Ext.Sleep( milliseconds )

Parameters

Parameter Type Description

milliseconds

int

Specifies the number of milliseconds for which a script execution should sleep.

Return

Type Description

None

Technical Details

SBM ModScript version: 11.3.

Notes

After the delay has elapsed, execution continues normally. If milliseconds is zero or negative, the thread relinquishes the remainder of its current time slice and there is no additional delay. For long-running scripts, consider using this method to prevent resource starvation of other processes.

Related Topics

Extension Functions