Op Englesch liesen Editéieren

Deelen iwwer


ValueTaskAwaiter<TResult> Struct

Definition

Provides an awaiter for a ValueTask<TResult>.

C#
public readonly struct ValueTaskAwaiter<TResult> : System.Runtime.CompilerServices.ICriticalNotifyCompletion
C#
public struct ValueTaskAwaiter<TResult> : System.Runtime.CompilerServices.ICriticalNotifyCompletion

Type Parameters

TResult

The type of the result produced by the task.

Inheritance
ValueTaskAwaiter<TResult>
Implements

Properties

IsCompleted

Gets a value that indicates whether the ValueTask<TResult> has completed.

Methods

GetResult()

Gets the result of the ValueTask.

OnCompleted(Action)

Schedules the continuation action for this ValueTask<TResult>.

UnsafeOnCompleted(Action)

Schedules the continuation action for this ValueTask.

Applies to

Produkt Versiounen
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1