Nito.AsyncEx.AsyncProducerConsumerQueue<T>
An async-compatible producer/consumer queue.
Creates a new async-compatible producer/consumer queue with the specified initial elements and a maximum element count.
Creates a new async-compatible producer/consumer queue with the specified initial elements.
Creates a new async-compatible producer/consumer queue with a maximum element count.
public AsyncProducerConsumerQueue()
Creates a new async-compatible producer/consumer queue.
Marks the producer/consumer queue as complete for adding.
Dequeues an item from the producer/consumer queue. Returns the dequeued item. This method may block the calling thread. Throws InvalidOperationException if the producer/consumer queue has completed adding and is empty.
Dequeues an item from the producer/consumer queue. Returns the dequeued item. This method may block the calling thread. Throws InvalidOperationException if the producer/consumer queue has completed adding and is empty.
Dequeues an item from the producer/consumer queue. Throws InvalidOperationException if the producer/consumer queue has completed adding and is empty.
Dequeues an item from the producer/consumer queue. Returns the dequeued item. Throws InvalidOperationException if the producer/consumer queue has completed adding and is empty.
Enqueues an item to the producer/consumer queue. This method may block the calling thread. Throws InvalidOperationException if the producer/consumer queue has completed adding.
Enqueues an item to the producer/consumer queue. This method may block the calling thread. Throws InvalidOperationException if the producer/consumer queue has completed adding.
Enqueues an item to the producer/consumer queue. Throws InvalidOperationException if the producer/consumer queue has completed adding.
Enqueues an item to the producer/consumer queue. Throws InvalidOperationException if the producer/consumer queue has completed adding.
Provides a (synchronous) consuming enumerable for items in the producer/consumer queue.
Provides a (synchronous) consuming enumerable for items in the producer/consumer queue.
Synchronously waits until an item is available to dequeue. Returns false if the producer/consumer queue has completed adding and there are no more items.
Synchronously waits until an item is available to dequeue. Returns false if the producer/consumer queue has completed adding and there are no more items.
Asynchronously waits until an item is available to dequeue. Returns false if the producer/consumer queue has completed adding and there are no more items.
Asynchronously waits until an item is available to dequeue. Returns false if the producer/consumer queue has completed adding and there are no more items.