using System;
using System.Threading.Tasks.Sources;
namespace Npgsql.Util;
sealed class ManualResetValueTaskSource : IValueTaskSource, IValueTaskSource
{
ManualResetValueTaskSourceCore _core; // mutable struct; do not make this readonly
public bool RunContinuationsAsynchronously { get => _core.RunContinuationsAsynchronously; set => _core.RunContinuationsAsynchronously = value; }
public short Version => _core.Version;
public void Reset() => _core.Reset();
public void SetResult(T result) => _core.SetResult(result);
public void SetException(Exception error) => _core.SetException(error);
public T GetResult(short token) => _core.GetResult(token);
void IValueTaskSource.GetResult(short token) => _core.GetResult(token);
public ValueTaskSourceStatus GetStatus(short token) => _core.GetStatus(token);
public void OnCompleted(Action