ValueTaskAwaiter<TResult> Struct

Definition

Fournit un awaiter pour un ValueTask<TResult>.Provides an awaiter for a ValueTask<TResult>.

generic <typename TResult>
public value class ValueTaskAwaiter : System::Runtime::CompilerServices::ICriticalNotifyCompletion
public struct ValueTaskAwaiter<TResult> : System.Runtime.CompilerServices.ICriticalNotifyCompletion
type ValueTaskAwaiter<'Result> = struct
    interface ICriticalNotifyCompletion
    interface INotifyCompletion
Public Structure ValueTaskAwaiter(Of TResult)
Implements ICriticalNotifyCompletion

Type Parameters

TResult

Type du résultat produit par la tâche.The type of the result produced by the task.

Inheritance
ValueTaskAwaiter<TResult>
Implements

Properties

IsCompleted

Obtient une valeur indiquant si la ValueTask<TResult> est terminée.Gets a value that indicates whether the ValueTask<TResult> has completed.

Methods

GetResult()

Obtient le résultat de la ValueTask.Gets the result of the ValueTask.

OnCompleted(Action)

Planifie l’action de continuation pour cette ValueTask<TResult>.Schedules the continuation action for this ValueTask<TResult>.

UnsafeOnCompleted(Action)

Planifie l’action de continuation pour cette ValueTask.Schedules the continuation action for this ValueTask.

Applies to