Class CancellationTokenOwner
Acts as a
Namespace: Swan.Threading
Syntax
public sealed class CancellationTokenOwner : IDisposable
Properties
Token
Gets the token of the current.
Declaration
public CancellationToken Token { get; }
Property Value
Type | Description |
---|---|
CancellationToken |
Methods
Cancel()
Cancels the last referenced token and creates a new token source.
Declaration
public void Cancel()
Dispose()
Declaration
public void Dispose()