Sets or gets the default captureRejection value for all emitters.
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
get the total items still left in the queue, including those that are being processed.
check if the queue is paused
check if there are still items pending in the queue
Get the special item to add to the queue so processing will pause when it's reached
add an item to the end of the queue
item to add
if true
then don't start processing
stop if error occurred for this item
instance self
add an array of items to the end of the queue
items to add
if true
then don't start processing
instance self
setup to begin process at the next event tick
nothing
pause the queue. any items already in progress will finish first.
instance self
resume the queue processing.
instance self
replace current array of items with a new one for processing
array of items
don't start processing after adding
item q instance itself
start the queue processing
instance self
mark the queue to unpause.
NOTE: this doesn't actually start the processing. Typically
you should use resume
to unpause and start processing.
instance self
Wait for the queue to finish processing items
promise that wait for queue to finish
Generated using TypeDoc
Queue to process items async