[This is preliminary documentation and is subject to change.]
Attempts to obtain the object at the head of the BlockingQueue
without removing it. Does not throw an exception if the queue is empty.
Declaration Syntax
C# |
public bool TryPeek( out T item )
Parameters
- item (T%)
- Returns with the object on the head of the queue, or default(T) if the queue is empty.
Return Value
True if there is an object returned in the item parameter, false
if the queue is empty.