<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.2-servicing-27114-05" />

System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder<TResult>

public struct AsyncValueTaskMethodBuilder<TResult>
namespace System.Runtime.CompilerServices { public struct AsyncValueTaskMethodBuilder<TResult> { public ValueTask<TResult> Task { get; } public static AsyncValueTaskMethodBuilder<TResult> Create(); public void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine; public void SetStateMachine(IAsyncStateMachine stateMachine); public void SetResult(TResult result); public void SetException(Exception exception); public void AwaitOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : INotifyCompletion where TStateMachine : IAsyncStateMachine; public void AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : ICriticalNotifyCompletion where TStateMachine : IAsyncStateMachine; } }