ConfiguredTaskAwaitable.ConfiguredTaskAwaiter 结构

定义

提供可等待 (ConfiguredTaskAwaitable) 对象的 Awaiter。Provides an awaiter for an awaitable (ConfiguredTaskAwaitable) object.

public: value class ConfiguredTaskAwaitable::ConfiguredTaskAwaiter : System::Runtime::CompilerServices::ICriticalNotifyCompletion
public struct ConfiguredTaskAwaitable.ConfiguredTaskAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion
type ConfiguredTaskAwaitable.ConfiguredTaskAwaiter = struct
    interface ICriticalNotifyCompletion
    interface INotifyCompletion
Public Structure ConfiguredTaskAwaitable.ConfiguredTaskAwaiter
Implements ICriticalNotifyCompletion
继承
ConfiguredTaskAwaitable.ConfiguredTaskAwaiter
实现

注解

此类型供编译器使用;不要直接在代码中使用它。This type is intended for compiler use; do not use it directly in your code.

属性

IsCompleted

获取指定长期任务是否复杂的值。Gets a value that specifies whether the task being awaited is completed.

方法

GetResult()

结束对已完成任务的等待。Ends the await on the completed task.

OnCompleted(Action)

为与此 awaiter 关联的任务计划延续操作。Schedules the continuation action for the task associated with this awaiter.

UnsafeOnCompleted(Action)

为与此 awaiter 关联的任务计划延续操作。Schedules the continuation action for the task associated with this awaiter.

适用于