The Sleep function pauses the execution of the server for a specified time.
|
Syntax | |||||
|
Sleep(MilliSeconds, Alertable) | |||||
|
Return value | |||||
|
Type |
Description | ||||
|
Long |
0 if successful | ||||
|
Parameter | |||||
|
Use |
Name |
Type |
Passing |
Description | |
|
Required |
MilliSeconds |
Long |
ByVal |
Time, in milliseconds, paused by the server | |
|
Optional |
Alertable |
Long |
ByVal |
Indicates whether the wait time can be canceled by interrupts | |
The optional Wait parameter specifies if TCE should wait for additional codes to run until the started process is finished. This feature should be handled carefully because a user intervention may be required that is not always possible on the server.