diff options
Diffstat (limited to 'node_modules/async/queue.js')
-rw-r--r-- | node_modules/async/queue.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/node_modules/async/queue.js b/node_modules/async/queue.js index 30ba41cad..0a61736d3 100644 --- a/node_modules/async/queue.js +++ b/node_modules/async/queue.js @@ -46,6 +46,12 @@ module.exports = exports['default']; * task in the list. Invoke with `queue.push(task, [callback])`, * @property {Function} unshift - add a new task to the front of the `queue`. * Invoke with `queue.unshift(task, [callback])`. + * @property {Function} remove - remove items from the queue that match a test + * function. The test function will be passed an object with a `data` property, + * and a `priority` property, if this is a + * [priorityQueue]{@link module:ControlFlow.priorityQueue} object. + * Invoked with `queue.remove(testFn)`, where `testFn` is of the form + * `function ({data, priority}) {}` and returns a Boolean. * @property {Function} saturated - a callback that is called when the number of * running workers hits the `concurrency` limit, and further tasks will be * queued. |