async-promise-queue
Advanced tools
Comparing version 1.0.3 to 1.0.4
'use strict'; | ||
var debug = require('debug')('async-promise-queue:'); | ||
// helper function that promisifies the queue | ||
module.exports = function queue(worker, work, concurrency) { | ||
debug('started, with concurrency=' + concurrency) | ||
return new Promise(function(resolve, reject) { | ||
@@ -6,0 +8,0 @@ var q = require('async').queue(worker, concurrency); |
{ | ||
"dependencies": { | ||
"async": "^2.4.1" | ||
"async": "^2.4.1", | ||
"debug": "^2.6.8" | ||
}, | ||
"name": "async-promise-queue", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "wrapper around async.queue to make some common usages simpler", | ||
@@ -13,3 +14,4 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "mocha test" | ||
"test": "mocha test", | ||
"test:debug": "mocha debug test" | ||
}, | ||
@@ -16,0 +18,0 @@ "devDependencies": { |
@@ -24,2 +24,10 @@ # async-promise-queue | ||
### Debug logging | ||
``` | ||
DEBUG="async-promise-queue*" node <your program> | ||
``` | ||
And you will be informed when a queue is used, and what its concurrency becomes (note: we can always add more logging, submit your ideas as pull requests!) | ||
## Example | ||
@@ -26,0 +34,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16472
205
64
2
+ Addeddebug@^2.6.8
+ Addeddebug@2.6.9(transitive)
+ Addedms@2.0.0(transitive)