Remove and return an item from the queue.
Remove and return an item from the queue.
Block until all items in the queue have been gotten and processed.
Put an item into the queue.
Put an item into the queue without blocking.
Indicate that a formerly enqueued task is complete.
Return $(D_KEYWORD true) if the queue is empty, $(D_KEYWORD false) otherwise.
Return $(D_KEYWORD true) if there are maxsize items in the queue.
Number of items allowed in the queue.
Number of items in the queue.
A queue, useful for coordinating producer and consumer coroutines.
If $(D_PSYMBOL maxSize) is equal to zero, the queue size is infinite. Otherwise $(D_PSYMBOL put()) will block when the queue reaches maxsize, until an item is removed by $(D_PSYMBOL get()).
You can reliably know this $(D_PSYMBOL Queue)'s size with $(D_PSYMBOL qsize()), since your single-threaded asynchronous application won't be interrupted between calling $(D_PSYMBOL qsize()) and doing an operation on the Queue.
This class is not thread safe.