AsyncQueue<T>.Peek Method

Definition

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.

Applies to