SBM ModScript Reference → Programming SBM ModScript → Extension Functions → Ext.Sleep()
(SBM On-Premise/PaaS only) Freezes script execution and the thread that called the script for the specified number of milliseconds.
Parameter | Type | Description |
---|---|---|
milliseconds |
int |
Specifies the number of milliseconds for which a script execution should sleep. |
Type | Description |
---|---|
None |
SBM ModScript version: 11.3.
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.
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.