Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

AsyncValueTaskMethodBuilder Struct

Definition

Namespace:
System.Runtime.CompilerServices
Assemblies:
netstandard.dll, System.Runtime.dll
Assembly:
System.Runtime.dll
Assembly:
netstandard.dll
Source:
AsyncValueTaskMethodBuilder.cs
Source:
AsyncValueTaskMethodBuilder.cs
Source:
AsyncValueTaskMethodBuilder.cs
Source:
AsyncValueTaskMethodBuilder.cs
Source:
AsyncValueTaskMethodBuilder.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Represents a builder for asynchronous methods that return a ValueTask.

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

Properties

Name Description
Task

Gets the task for this builder.

Methods

Name Description
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 AsyncValueTaskMethodBuilder 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


Feedback

Was this page helpful?