struct AsyncTaskMethodBuilder<TResult>

in global :: System . Runtime . CompilerServices

Represents a builder for asynchronous methods that returns a task and provides a parameter for the result.

  • TResult The result to use to complete the task.

public void SetException( Exception exception )

Marks the task as failed and binds the specified exception to the task.

  • exception The exception to bind to the task.

public void SetStateMachine( IAsyncStateMachine stateMachine )

Associates the builder with the specified state machine.

  • stateMachine The state machine instance to associate with the builder.

public Task<TResult> Task { get; }

Gets the task for this builder.

  • Returns The task for this builder.

public static AsyncTaskMethodBuilder<TResult> Create( )

😔 No documentation found.

public void Start( ref TStateMachine stateMachine )

😔 No documentation found.

public void AwaitOnCompleted( ref TAwaiter awaiter, ref TStateMachine stateMachine )

😔 No documentation found.

public void AwaitUnsafeOnCompleted( ref TAwaiter awaiter, ref TStateMachine stateMachine )

😔 No documentation found.

public void SetResult( TResult result )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.