ValueTaskAwaiter<TResult> Estrutura

Definição

Fornece um awaiter para um 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

Parâmetros de tipo

TResult

O tipo do resultado produzido pela tarefa.The type of the result produced by the task.

Herança
ValueTaskAwaiter<TResult>
Implementações

Propriedades

IsCompleted

Obtém um valor que indica se o ValueTask<TResult> foi concluído.Gets a value that indicates whether the ValueTask<TResult> has completed.

Métodos

GetResult()

Obtém o resultado do ValueTask.Gets the result of the ValueTask.

OnCompleted(Action)

Agenda a ação de continuação para este ValueTask<TResult>.Schedules the continuation action for this ValueTask<TResult>.

UnsafeOnCompleted(Action)

Agenda a ação de continuação para esta ValueTask.Schedules the continuation action for this ValueTask.

Aplica-se a