CancellationTokenSource Constructor (TimeSpan)
Initializes a new instance of the CancellationTokenSource class that will be canceled after the specified time span.
Assemblies: System.Threading.Tasks (in System.Threading.Tasks.dll)
mscorlib (in mscorlib.dll)
The countdown for the delay starts during the call to the constructor. When the delay expires, the constructed CancellationTokenSource is canceled, if it has not been canceled already.