Method DequeueEach
- Namespace
- Open.Database.Extensions
- Assembly
- Open.Database.Extensions.Core.dll
DequeueEach<T>(Queue<T>)
Useful extension for dequeuing items from a queue. Not thread safe but queueing/dequeuing items in between items is supported.
public static IEnumerable<T> DequeueEach<T>(this Queue<T> source)
Parameters
sourceQueue<T>
Returns
- IEnumerable<T>
An enumerable of the items contained within the queue.
Type Parameters
TReturn type of the source queue