TaskUtilities..::..AutoCancelingToken Method (Int32)

Automatically cancels a CancellationToken after the indicated amount of time in milliseconds.

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

Syntax


[SuppressMessageAttribute]
public static CancellationToken AutoCancelingToken(
	int millisecondsDelay
)
<SuppressMessageAttribute> _
Public Shared Function AutoCancelingToken ( _
	millisecondsDelay As Integer _
) As CancellationToken

Parameters

millisecondsDelay
Type: Int32
The delay in milliseconds before the token is canceled.

Return Value

CancellationToken.

Exceptions


ExceptionCondition
[ArgumentOutOfRangeException]delay