Muokkaa

Jaa


PoolingAsyncValueTaskMethodBuilder Struct

Definition

Represents a builder for asynchronous methods that return a ValueTask.

public value class PoolingAsyncValueTaskMethodBuilder
public struct PoolingAsyncValueTaskMethodBuilder
type PoolingAsyncValueTaskMethodBuilder = struct
Public Structure PoolingAsyncValueTaskMethodBuilder
Inheritance
PoolingAsyncValueTaskMethodBuilder

Properties

Task

Gets the task for this builder.

Methods

AwaitOnCompleted<TAwaiter,TStateMachine>(TAwaiter, TStateMachine)

Schedules the state machine to proceed to the next action when the specified awaiter completes.

AwaitUnsafeOnCompleted<TAwaiter,TStateMachine>(TAwaiter, TStateMachine)

Schedules the state machine to proceed to the next action when the specified awaiter completes.

Create()

Creates an instance of the PoolingAsyncValueTaskMethodBuilder struct.

SetException(Exception)

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

SetResult()

Marks the task as successfully completed.

SetStateMachine(IAsyncStateMachine)

Associates the builder with the specified state machine.

Start<TStateMachine>(TStateMachine)

Begins running the builder with the associated state machine.

Applies to