Event handler
handlers for the events item queue emits
options.handlers
queue.on
an item was processed
queue failed
an item processing failed
queue finished
empty
before thisqueue is empty
queue is paused
progress watcher that watch for items taking longer than options.watchTime
to process.
Item queue options
pass in custom promise implementation
number of to process concurrently
event handlers
initial array of items
callback to process each item
immediately stop if an error occurred
frequency the progress watcher should check for overdue items
The time an item has to take before reporting it to the progress watcher
watchTime
again yet, then
it's report as part of the still
items in the WatchData.result of processed an item
Callback to process an item from the item queue
item to process
id number item queue uses to track this item
Data for the progress watch event of overdue items that took longer than options.watchTime
The overdue items are reported in two fields: watched
and still
. Typically watched
would
contain the items that are newly become overdue or again. If you are not interested in the difference,
then just combine them with [].concat(watched, still)
.
watched
are items that pass options.watchTime
for the first time or again since they were
last checked.still
are items already overdue by options.watchTime
but have not again taken more time than
options.watchTime
yet.Items that are already overdue but have not again taken more time than options.watchTime
yet
total number of items triggered in watched
and still
combined
time an item has to take before it's reported
Items that took over options.watchTime
for the first time or again since they were last checked
Data of each item for the progress watch event
item that made progress
promise waiting for item
time elapsed since item started processing
Generated using TypeDoc
data passed to the event handlers