AsyncQueue<T>.IsCompleted Property

Definition

Gets a value indicating whether the queue is both empty and had Complete() invoked.

public:
 property bool IsCompleted { bool get(); };
public:
 property bool IsCompleted { bool get(); };
public bool IsCompleted { get; }
member this.IsCompleted : bool
Public ReadOnly Property IsCompleted As Boolean

Property Value

true if the queue has completed, otherwise false.

Remarks

This is arguably redundant with Completion.IsCompleted, but this property won't cause the lazy instantiation of the Task that Completion may if there is no other reason for the Task to exist.

Applies to