ConfiguredTaskAwaitable<TResult>.ConfiguredTaskAwaiter ConfiguredTaskAwaitable<TResult>.ConfiguredTaskAwaiter ConfiguredTaskAwaitable<TResult>.ConfiguredTaskAwaiter ConfiguredTaskAwaitable<TResult>.ConfiguredTaskAwaiter Struct

定義

提供 awaitable 物件 (ConfiguredTaskAwaitable<TResult>) 的 awaiter。Provides an awaiter for an awaitable object(ConfiguredTaskAwaitable<TResult>).

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

類型參數

TResult
繼承
ConfiguredTaskAwaitable<TResult>.ConfiguredTaskAwaiterConfiguredTaskAwaitable<TResult>.ConfiguredTaskAwaiterConfiguredTaskAwaitable<TResult>.ConfiguredTaskAwaiterConfiguredTaskAwaitable<TResult>.ConfiguredTaskAwaiter
實作

備註

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

屬性

IsCompleted IsCompleted IsCompleted IsCompleted

取得值,指出等候的工作是否已完成。Gets a value that specifies whether the task being awaited has been completed.

方法

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

結束等候已完成的工作。Ends the await on the completed task.

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

排程此 awaiter 相關工作的接續動作。Schedules the continuation action for the task associated with this awaiter.

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

排程此 awaiter 相關工作的接續動作。Schedules the continuation action for the task associated with this awaiter.

適用於