Optional
maxOptional
nextThe 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
Optional
skipShould we skip processing the first item in the queue when it's full and an item is added?
Optional
stopShould we stop processing once the queue is empty, or wait for more items to be added?
Optional
waitThe amount of time to wait before resuming once the queue is empty
The maximum number of items that can be stored in the queue