ConfiguredTaskAwaitable<TResult> 結構

定義

提供 awaitable 物件,啟用工作上之設定的等候。Provides an awaitable object that enables configured awaits on a task.

generic <typename TResult>
public value class ConfiguredTaskAwaitable
public struct ConfiguredTaskAwaitable<TResult>
type ConfiguredTaskAwaitable<'Result> = struct
Public Structure ConfiguredTaskAwaitable(Of TResult)

類型參數

TResult

這個 Task<TResult> 所產生之結果的類型。The type of the result produced by this Task<TResult>.

繼承
ConfiguredTaskAwaitable<TResult>

備註

這個型別僅供編譯器使用。請勿直接在您的程式碼中使用。This type is intended for compiler use; do not use it directly in your code.

方法

GetAwaiter()

傳回這個 awaitable 物件的 awaiter。Returns an awaiter for this awaitable object.

適用於