adTempus API
ArcanaDevelopment.adTempus.ApplicationIntegration Namespace / ScriptHostInterface Class / Sleep Method
The number of milliseconds to sleep.


In This Topic
    Sleep Method (ScriptHostInterface)
    In This Topic
    Delays execution for the specified number of milliseconds.
    Syntax
    'Declaration
     
    
    Public Shared Function Sleep( _
       ByVal timeoutMS As Integer _
    ) As Boolean
    public static bool Sleep( 
       int timeoutMS
    )
    public:
    static bool Sleep( 
       int timeoutMS
    ) 

    Parameters

    timeoutMS
    The number of milliseconds to sleep.

    Return Value

    True if the wait period elapsed, or False if the script/step/job was aborted before the wait elapsed.
    Remarks
    Use this method to sleep safely inside a script and abort processing if the script is terminated.
    See Also