System.Threading.Tasks.Extensions by Microsoft

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

 AsyncValueTaskMethodBuilder<TResult>

public struct AsyncValueTaskMethodBuilder<TResult>
public ValueTask<TResult> Task { get; }

public static AsyncValueTaskMethodBuilder<TResult> Create()

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

public void SetException(Exception exception)

public void SetResult(TResult result)

public void SetStateMachine(IAsyncStateMachine stateMachine)

public void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine