async-deco
Advanced tools
Comparing version 7.0.2 to 7.0.3
{ | ||
"name": "async-deco", | ||
"version": "7.0.2", | ||
"version": "7.0.3", | ||
"description": "A collection of decorators for adding features to asynchronous functions (callback or promise based).", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -316,3 +316,3 @@ async-deco | ||
You can initialise the decorator with 1 argument: | ||
* number of parallel execution [default to 1]. It can also be an object: {max: number, queueSize: number}. | ||
* number of parallel execution [default to 1]. It can also be an object: {limit: number, queueSize: number}. | ||
* "limit" will be the number of parallel execution | ||
@@ -319,0 +319,0 @@ * "queueSize" is the size of the queue (default to Infinity). If the queue reaches this size any further function call will return an error without calling the original function |
@@ -6,5 +6,5 @@ var defaultLogger = require('../utils/default-logger'); | ||
getKey = keyGetter(getKey || function () { return '_default'; }); | ||
var callback_queues = {}; | ||
return wrapper(function (func) { | ||
var callback_queues = {}; | ||
@@ -11,0 +11,0 @@ return function () { |
@@ -18,5 +18,6 @@ require('setimmediate'); | ||
} | ||
var executionNumbers = {}; | ||
var queues = {}; | ||
return wrapper(function (func) { | ||
var executionNumbers = {}; | ||
var queues = {}; | ||
@@ -23,0 +24,0 @@ return function () { |
@@ -6,4 +6,5 @@ var defaultLogger = require('../utils/default-logger'); | ||
getKey = keyGetter(getKey || function () { return '_default'; }); | ||
var cache = {}; | ||
return wrapper(function (func) { | ||
var cache = {}; | ||
return function () { | ||
@@ -10,0 +11,0 @@ var context = this; |
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
135335