<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="10.0.2" />

System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore<TResult>

public struct ManualResetValueTaskSourceCore<TResult>
Provides the core logic for implementing a manual-reset IValueTaskSource or IValueTaskSource<T>.
namespace System.Threading.Tasks.Sources { public struct ManualResetValueTaskSourceCore<[System.Runtime.CompilerServices.Nullable(2)] TResult> { public bool RunContinuationsAsynchronously { get; set; } public short Version { get; } public void Reset(); public void SetResult(TResult result); public void SetException(Exception error); public ValueTaskSourceStatus GetStatus(short token); public TResult GetResult(short token); public void OnCompleted(Action<object> continuation, object state, short token, ValueTaskSourceOnCompletedFlags flags); } }