ValueTaskAwaiter ValueTaskAwaiter ValueTaskAwaiter ValueTaskAwaiter Struct

定義

ValueTask 提供 awaiter。Provides an awaiter for a ValueTask.

public value class ValueTaskAwaiter : System::Runtime::CompilerServices::ICriticalNotifyCompletion
public struct ValueTaskAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion
type ValueTaskAwaiter = struct
    interface ICriticalNotifyCompletion
    interface INotifyCompletion
Public Structure ValueTaskAwaiter
Implements ICriticalNotifyCompletion
繼承
ValueTaskAwaiterValueTaskAwaiterValueTaskAwaiterValueTaskAwaiter
實作

屬性

IsCompleted IsCompleted IsCompleted IsCompleted

取得值,指出 ValueTask 是否已完成。Gets a value that indicates whether the ValueTask has completed.

方法

GetResult() GetResult() GetResult() GetResult()

取得 ValueTask 的結果。Gets the result of the ValueTask.

OnCompleted(Action) OnCompleted(Action) OnCompleted(Action) OnCompleted(Action)

排程此 ValueTask 的接續動作。Schedules the continuation action for this ValueTask.

UnsafeOnCompleted(Action) UnsafeOnCompleted(Action) UnsafeOnCompleted(Action) UnsafeOnCompleted(Action)

排程這個 ValueTask 的接續動作。Schedules the continuation action for this ValueTask.

適用於