Skip to main content

CancellationTokenTaskSource<T>

Holds the task for a cancellation token, as well as the token registration. The registration is disposed when this instance is disposed.

Assembly: ServiceStack.Common.dll​
View Source​
Declaration
public sealed class CancellationTokenTaskSource<T> : IDisposable

Properties​

Task​

Gets the task for the source cancellation token.

View Source​
Declaration
public Task<T> Task { get; }

Methods​

Dispose()​

Disposes the cancellation token registration, if any. Note that this may cause ServiceStack.AsyncEx.CancellationTokenTaskSource%601.Task to never complete.

View Source​
Declaration
public void Dispose()

Implements​

  • System.IDisposable