<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" />

System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder

namespace System.Runtime.CompilerServices { public struct AsyncValueTaskMethodBuilder { public ValueTask Task { get; } public static AsyncValueTaskMethodBuilder Create(); public void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine; public void SetStateMachine(IAsyncStateMachine stateMachine); public void SetResult(); 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; } } namespace System.Threading.Tasks.Sources { public enum ValueTaskSourceOnCompletedFlags { None = 0, UseSchedulingContext = 1, FlowExecutionContext = 2 } }