async-lock
Advanced tools
Comparing version 1.3.0 to 1.3.1
1.3.0 | ||
================== | ||
* Add maxOccupationTime option (Thank you @abozaralizadeh) | ||
* Add maxOccupationTime option (Thank you @abozaralizadeh and @ThePiz) | ||
@@ -5,0 +5,0 @@ 1.2.8 |
@@ -170,3 +170,3 @@ 'use strict'; | ||
else if (self.queues[key].length >= self.maxPending) { | ||
done(false, new Error('Too much pending tasks')); | ||
done(false, new Error('Too many pending tasks in queue ' + key)); | ||
} | ||
@@ -187,3 +187,3 @@ else { | ||
timer = null; | ||
done(false, new Error('async-lock timed out')); | ||
done(false, new Error('async-lock timed out in queue ' + key)); | ||
}, timeout); | ||
@@ -197,3 +197,3 @@ } | ||
if (!!self.queues[key]) { | ||
done(false, new Error('Maximum occupation time is exceeded')); | ||
done(false, new Error('Maximum occupation time is exceeded in queue ' + key)); | ||
} | ||
@@ -200,0 +200,0 @@ }, maxOccupationTime); |
{ | ||
"name": "async-lock", | ||
"description": "Lock on asynchronous code", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Rogier Schouten", |
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
16455