ConfiguredTaskAwaitable<TResult>.ConfiguredTaskAwaiter.IsCompleted 属性
定义
获取一个值,该值指定等待中的任务是否已完成。Gets a value that specifies whether the task being awaited has been completed.
public:
property bool IsCompleted { bool get(); };
public bool IsCompleted { get; }
member this.IsCompleted : bool
Public ReadOnly Property IsCompleted As Boolean
属性值
如果已成功完成等待任务,则为 true;否则为 false。true if the task being awaited has been completed; otherwise, false.
例外
awaiter 未正确地初始化。The awaiter was not properly initialized.
注解
此属性旨在供编译器使用;不要直接在代码中使用它。This property is intended for compiler use; do not use it directly in your code.