<PackageReference Include="System.Threading.Channels" Version="11.0.0-preview.5.26302.115" />

System.Threading.Channels.AsyncOperation

abstract class AsyncOperation
protected static readonly Action<object> s_availableSentinel

protected static readonly Action<object> s_completedSentinel

public bool RunContinuationsAsynchronously { get; }

protected AsyncOperation(bool runContinuationsAsynchronously, CancellationToken cancellationToken, bool pooled, Action<object, CancellationToken> cancellationCallback)

protected static void ThrowIncompleteOperationException()

protected static void ThrowIncorrectCurrentIdException()

protected static void ThrowMultipleContinuations()

public void OnCompleted(Action<object> continuation, object state, short token, ValueTaskSourceOnCompletedFlags flags)

public bool TrySetCanceled(CancellationToken cancellationToken = default)

public bool TrySetException(Exception exception)