TaskUtilities..::..AutoCancelingTask Method (Int32)

Creates a task that automatically cancels after a given delay.

Namespace:  Tortuga.Anchor
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public static Task AutoCancelingTask(
	int delay
)
Public Shared Function AutoCancelingTask ( _
	delay As Integer _
) As Task

Parameters

delay
Type: Int32
The delay, in milliseconds, before the task is canceled.

Return Value

Task that will be canceled.