Language

ValueTaskAwaiter Struct

Definition

Provides an awaiter for a ValueTask.

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

Type Parameters

TResult

The type of the result produced by the task.

Inheritance
ValueTaskAwaiter
Implements

Properties

Name Description
IsCompleted

Gets a value that indicates whether the ValueTask has completed.

Methods

Name Description
GetResult()

Gets the result of the ValueTask.

OnCompleted(Action)

Schedules the continuation action for this ValueTask.

UnsafeOnCompleted(Action)

Schedules the continuation action for this ValueTask.

Applies to