await-lock
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -33,4 +33,4 @@ "use strict"; | ||
}, | ||
releaseAsync: { | ||
value: function releaseAsync() { | ||
release: { | ||
value: function release() { | ||
assert(this._acquired, "Trying to release an unacquired lock"); | ||
@@ -37,0 +37,0 @@ if (this._waitingResolvers.length > 0) { |
{ | ||
"name": "await-lock", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Mutex locks for ES7 async functions and delegating generator functions", | ||
@@ -5,0 +5,0 @@ "main": "build/AwaitLock.js", |
# AwaitLock | ||
Mutex locks for ES7 async functions and delegating generator functions | ||
[![npm package](https://nodei.co/npm/await-lock.png?downloads=true&downl\ | ||
oadRank=true&stars=true)](https://nodei.co/npm/await-lock/) | ||
# Usage | ||
@@ -14,3 +17,3 @@ | ||
} finally { | ||
await lock.releaseAsync(); | ||
lock.release(); | ||
} | ||
@@ -29,5 +32,5 @@ } | ||
} finally { | ||
yield lock.releaseAsync(); | ||
lock.release(); | ||
} | ||
}); | ||
``` |
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
4041
35