[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.
| C# |
public bool TryPeek( out T item )
- item (T%)
- Returns with the object on the head of the queue, or default(T) if the queue is empty.
True if there is an object returned in the item parameter, false
if the queue is empty.