A minimum threshold buffer in order to say that the queue is unsaturated.
an integer for determining how many worker functions should be run in parallel.
an integer for determining how many worker functions should be run in parallel. This property can be changed after a queue is created to alter the concurrency on-the-fly.
A callback that is called when the last item from the queue has returned from the worker.
A callback that is called when the last item from the queue is given to a worker.
A callback that is called when a task errors.
A callback that is called when a task errors. Has the signature function(error, task).
false if there are items waiting or being processed, or true if not.
queue.idle()
A function that removes the drain callback and empties remaining tasks from the queue forcing it to go idle.
A function that removes the drain callback and empties remaining tasks from the queue forcing it to go idle.
queue.kill()
the number of items waiting to be processed.
queue.length()
A function that pauses the processing of tasks until resume() is called.
A function that pauses the processing of tasks until resume() is called.
queue.pause()
A boolean for determining whether the queue is in a paused state.
add a new task to the queue.
add a new task to the queue. Calls callback once the worker has finished processing the task. Instead of a single task, a tasks array can be submitted. The respective callback is used for every task in the list.
queue.push(task, [callback])
A function that resumes the processing of queued tasks when the queue is paused.
A function that resumes the processing of queued tasks when the queue is paused.
queue.resume()
the number of items currently being processed.
queue.running()
A callback that is called when the number of running workers hits the concurrency limit, and further tasks will be queued.
A boolean indicating whether or not any items have been pushed and processed by the queue.
A callback that is called when the number of running workers is less than the concurrency & buffer limits, and further tasks will not be queued.
Add a new task to the front of the queue.sbt pu
Add a new task to the front of the queue.sbt pu
queue.unshift(task, [callback])
the array of items currently being processed.
queue.workersList()
Queue Object - A queue of tasks for the worker function to complete.
http://caolan.github.io/async/docs.html#.QueueObject