PoolingAsyncValueTaskMethodBuilder<TResult> Struct
Definition
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 returns a ValueTask<TResult>.
generic <typename TResult>
public value class PoolingAsyncValueTaskMethodBuilder
public struct PoolingAsyncValueTaskMethodBuilder<TResult>
type PoolingAsyncValueTaskMethodBuilder<'Result> = struct
Public Structure PoolingAsyncValueTaskMethodBuilder(Of TResult)
Type Parameters
- TResult
The type of the result.
- Inheritance
Properties
Task |
Gets the value 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<TResult> struct. |
SetException(Exception) |
Marks the value task as failed and binds the specified exception to the value task. |
SetResult(TResult) |
Marks the value 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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για