Show / Hide Table of Contents

Struct CancellationTokenMultiplexer.Scope

Represents a scope that controls the lifetime of the multiplexed cancellation token.

Implements
IMultiplexedCancellationTokenSource
IDisposable
IAsyncDisposable
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: DotNext.Threading
Assembly: DotNext.Threading.dll
Syntax
public readonly struct CancellationTokenMultiplexer.Scope : IMultiplexedCancellationTokenSource, IDisposable, IAsyncDisposable

Properties

| Edit this page View Source

CancellationOrigin

Gets the cancellation origin if Token is in canceled state.

Declaration
public CancellationToken CancellationOrigin { get; }
Property Value
Type Description
CancellationToken
| Edit this page View Source

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 Source

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()
| Edit this page View Source

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.

Implements

IMultiplexedCancellationTokenSource
IDisposable
IAsyncDisposable

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
Collection.ToAsyncEnumerator<TEnumerator, T>(TEnumerator, CancellationToken)
Collection.ToClassicEnumerator<TEnumerator, T>(TEnumerator)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
ExpressionBuilder.Const<T>(T)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾