The amount of time in ms to wait before retrieving the next item in the queue
Optional
onCallback to run when an item is added to the queue
Optional
onCallback to run when the queue is cleared
Optional
onCallback to run when the queue is empty
Optional
onCallback to run when an item is processed
Optional
onCallback to run when an item is about to be processed
Optional
onCallback to run when an item is removed from the queue
Optional
processThe function to run on each item in the queue, before continuing to the next item
Should we skip processing the first item in the queue when it's full and an item is added?
Should we stop processing once the queue is empty, or wait for more items to be added?
The amount of time to wait before resuming once the queue is empty
Static
Readonly
defaultClears the queue
Retrieves the first item in the queue without removing it
The first item in the queue
Starts processing the queue, never initialized internally so requires explicit call to start, static queue if never called
The maximum number of items that can be stored in the queue