[This is preliminary documentation and is subject to change.]
Removes and returns the object at the beginning of the
BlockingQueue.
Declaration Syntax
C# |
public T Dequeue()
Return Value
The object that is removed from the beginning of the
BlockingQueue.
Remarks
If the BlockingQueue is empty, then this method will block. Any
number of threads can be blocked, waiting on the same BlockingQueue. When
a thread enqueues an item, one of the waiting threads is unblocked and
receives the item.