TaskUtilities..::..AutoCancelingToken Method (Int32)
Automatically cancels a CancellationToken after the indicated amount of time in milliseconds.
Namespace:
Tortuga.AnchorAssembly: 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.