AsyncQueue<T>.Peek 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.
Gets the value at the head of the queue without removing it from the queue.
public:
T Peek();
public:
T Peek();
T Peek();
public T Peek ();
member this.Peek : unit -> 'T
Public Function Peek () As T
Returns
T
The Task<TResult> at the head of the queue.
Exceptions
Thrown if the queue is empty.