AsyncQueue<T>.TryEnqueue(T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.