Optionalconcurrencynumber of to process concurrently
Optionalhandlersevent handlers
Optionaliteminitial array of items
callback to process each item
OptionalPromisepass in custom promise implementation
Optionalstopimmediately stop if an error occurred
Optionaltimeoutmax milliseconds an item can take. A timed out item fails with an ETIMEDOUT error,
its concurrency slot is freed, and a late result is ignored.
processItem receives an AbortSignal that is aborted on timeout. The queue can't
cancel the work, so check the signal to stop it.Optionalwatchfrequency the progress watcher should check for overdue items
OptionalwatchThe 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.
Item queue options