AsyncQueue<T>.TryEnqueue(T) Method

Definition

Adds an element to the tail of the queue if it has not yet completed.

public:
 bool TryEnqueue(T value);
public:
 bool TryEnqueue(T value);
bool TryEnqueue(T value);
public bool TryEnqueue (T value);
member this.TryEnqueue : 'T -> bool
Public Function TryEnqueue (value As T) As Boolean

Parameters

value
T

The value to add.

Returns

true if the value was added to the queue; false if the queue is already completed.

Applies to