A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/dotnet/api/system.threading.cancellationtokensource.cancelafter below:

CancellationTokenSource.CancelAfter Method (System.Threading) | Microsoft Learn

Source:
CancellationTokenSource.cs
Source:
CancellationTokenSource.cs
Source:
CancellationTokenSource.cs
Source:
CancellationTokenSource.cs

Schedules a cancel operation on this CancellationTokenSource after the specified number of milliseconds.

public:
 void CancelAfter(int millisecondsDelay);
public void CancelAfter(int millisecondsDelay);
member this.CancelAfter : int -> unit
Public Sub CancelAfter (millisecondsDelay As Integer)
Parameters
millisecondsDelay
Int32

The time span to wait before canceling this CancellationTokenSource.

Exceptions ObjectDisposedException

The exception thrown when this CancellationTokenSource has been disposed.

ArgumentOutOfRangeException

The exception thrown when millisecondsDelay is less than -1.

Remarks

The countdown for the millisecondsDelay starts during this call. When the millisecondsDelay expires, this CancellationTokenSource is canceled, if it has not been canceled already.

Subsequent calls to CancelAfter will reset the millisecondsDelay for this CancellationTokenSource, if it has not been canceled already.

Applies to

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4