Struct CancellationTokenMultiplexer.Scope
Represents a scope that controls the lifetime of the multiplexed cancellation token.
Inherited Members
Namespace: DotNext.Threading
Assembly: DotNext.Threading.dll
Syntax
public readonly struct CancellationTokenMultiplexer.Scope : IMultiplexedCancellationTokenSource, IDisposable, IAsyncDisposable
Properties
| Edit this page View SourceCancellationOrigin
Gets the cancellation origin if Token is in canceled state.
Declaration
public CancellationToken CancellationOrigin { get; }
Property Value
Type | Description |
---|---|
CancellationToken |
Token
Gets the cancellation token that can be canceled by any of the multiplexed tokens.
Declaration
public CancellationToken Token { get; }
Property Value
Type | Description |
---|---|
CancellationToken |
Methods
| Edit this page View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
Declaration
public ValueTask DisposeAsync()
Returns
Type | Description |
---|---|
ValueTask | A task that represents the asynchronous dispose operation. |