<PackageReference Include="System.Threading.Channels" Version="10.0.12" />

System.Threading.Channels.AsyncOperation

namespace System.Threading.Channels { internal abstract class AsyncOperation : IThreadPoolWorkItem { protected static readonly Action<object> s_availableSentinel; protected static readonly Action<object> s_completedSentinel; public bool RunContinuationsAsynchronously { get; } protected static void ThrowIncompleteOperationException(); protected static void ThrowMultipleContinuations(); protected static void ThrowIncorrectCurrentIdException(); protected AsyncOperation(bool runContinuationsAsynchronously, CancellationToken cancellationToken, bool pooled, Action<object, CancellationToken> cancellationCallback); public bool TrySetException(Exception exception); public bool TrySetCanceled(CancellationToken cancellationToken = default(CancellationToken)); public bool TryReserveCompletionIfCancelable(); public void OnCompleted(Action<object> continuation, object state, short token, ValueTaskSourceOnCompletedFlags flags); } }