Click or drag to resize

ScriptingDelay Method

Introduces a delay in script execution.

Namespace:  RRAutoLib.Scripting
Assembly:  RRAutoLib (in RRAutoLib.dll) Version: 4.0.8678.28884
Syntax
Public Shared Function Delay ( 
	intDuration As UInteger,
	Optional sctCancelToken As CancellationToken = Nothing
) As Task

Parameters

intDuration
Type: SystemUInt32
Number of milliseconds to wait before continuing with the next line of script.
sctCancelToken (Optional)
Type: System.ThreadingCancellationToken
Token provided by a controlling source to notify this method that it should cancel its execution.

Return Value

Type: Task
The Task that must be awaited, for the delay to occur.
Remarks
This method was designed specifically for use within the scripting context.
See Also