Exposes an AsyncIterable interface for the BlockingQueue.
AsyncIterable
BlockingQueue
Create a new IterableQueue
IterableQueue
IterableQueue options
Gets an element when one is ready, waits if none are ready.
Element or undefined if queue is empty and done has been called
done
Indicate that no more items will be enqueued.
This releases all readers blocked on enqueue
enqueue
Add an item to the queue, wait if the queue is full.
Element to add
Used by the iterator returned from [Symbol.asyncIterator] Called every time an item is needed
Iterator result
Generated using TypeDoc
Exposes an
AsyncIterable
interface for theBlockingQueue
.