YieldAwaitable.YieldAwaiter YieldAwaitable.YieldAwaiter YieldAwaitable.YieldAwaiter YieldAwaitable.YieldAwaiter Struct

定義

提供要切換至目標環境的 awaiter。Provides an awaiter for switching into a target environment.

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

備註

這個類型和其成員是供編譯器使用。This type and its members are intended for use by the compiler.

屬性

IsCompleted IsCompleted IsCompleted IsCompleted

取得值,指出是否不需要 yield。Gets a value that indicates whether a yield is not required.

方法

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

結束等候作業。Ends the await operation.

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

設定要叫用的接續符號。Sets the continuation to invoke.

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

continuation 回傳至目前的內容。Posts the continuation back to the current context.

適用於