Class AsyncQueue<T>
public class AsyncQueue<T>
Type Parameters
T
- Inheritance
-
AsyncQueue<T>
Constructors
AsyncQueue()
public AsyncQueue()
Methods
DequeueAsync(CancellationToken)
public ValueTask<T> DequeueAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken
Returns
- ValueTask<T>
Enqueue(T)
public void Enqueue(T item)
Parameters
item
T