Protected
_Protected
_Protected
_Protected
_Returns true if the queue is empty.
Protected
_Protected
_Protected
_Clears the list.
Produces an iterable that dequeues items when iterated. Stops when empty.
Pulls an entry from the head of the queue and returns it. Returns undefined if the queue is already empty.
Pulls an entry from the head of the queue and returns it. Returns undefined if the queue is already empty and throwIfEmpty is false.
Pulls an entry from the head of the queue and returns it. Returns undefined if the queue is already empty and throwIfEmpty is false.
Clears the list.
Returns the number of items contained in the collection by iterating the contents.
Returns the entry at the head of the queue. Returns undefined if the queue is already empty.
Returns the entry at the head of the queue. Returns undefined if the queue is already empty and throwIfEmpty is false.
Returns the entry at the head of the queue. Returns undefined if the queue is already empty and throwIfEmpty is false.
Clears the list.
Trims excess items in the underlying array.
Optional
threshold: numberChecks to see if the queue has entries an pulls an entry from the head of the queue and passes it to the out handler.
The 'out' handler that receives the value if it exists.
True if a value was retrieved. False if not.
The number of items currently in the queue.