async-mutex
Advanced tools
Comparing version 0.2.4 to 0.2.5
# Changelog | ||
## 0.2.5 | ||
* Fix a nasty [bug](https://github.com/DirtyHairy/async-mutex/issues/27) related to | ||
consecutive calls to `mutex::release`. | ||
## 0.2.4 | ||
@@ -4,0 +9,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.withTimeout = exports.Semaphore = exports.Mutex = void 0; | ||
var Mutex_1 = require("./Mutex"); | ||
@@ -4,0 +5,0 @@ Object.defineProperty(exports, "Mutex", { enumerable: true, get: function () { return Mutex_1.default; } }); |
{ | ||
"name": "async-mutex", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "A mutex for guarding async workflows", | ||
@@ -58,17 +58,17 @@ "scripts": { | ||
"@sinonjs/fake-timers": "^6.0.1", | ||
"@types/mocha": "^7.0.2", | ||
"@types/node": "^14.0.13", | ||
"@types/sinonjs__fake-timers": "^6.0.1", | ||
"@typescript-eslint/eslint-plugin": "^3.3.0", | ||
"@typescript-eslint/parser": "^3.3.0", | ||
"@types/mocha": "^8.0.4", | ||
"@types/node": "^14.14.10", | ||
"@types/sinonjs__fake-timers": "^6.0.2", | ||
"@typescript-eslint/eslint-plugin": "^4.8.2", | ||
"@typescript-eslint/parser": "^4.8.2", | ||
"coveralls": "^3.1.0", | ||
"eslint": "^7.2.0", | ||
"eslint": "^7.14.0", | ||
"import-sort-style-eslint": "^6.0.0", | ||
"mocha": "^8.0.1", | ||
"mocha": "^8.2.1", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.0.5", | ||
"prettier-plugin-import-sort": "^0.0.4", | ||
"rollup": "^2.17.0", | ||
"ts-node": "^8.10.2", | ||
"typescript": "^3.9.5" | ||
"prettier": "^2.2.0", | ||
"prettier-plugin-import-sort": "^0.0.6", | ||
"rollup": "^2.33.3", | ||
"ts-node": "^9.0.0", | ||
"typescript": "^4.1.2" | ||
}, | ||
@@ -75,0 +75,0 @@ "main": "lib/index.js", |
@@ -17,3 +17,3 @@ [![Build Status](https://travis-ci.org/DirtyHairy/async-mutex.svg?branch=master)](https://travis-ci.org/DirtyHairy/async-mutex) | ||
enforces exclusive access to the resource. Once the operation is complete, the | ||
thread releases the lock, allowing other threads to aquire a lock and access the | ||
thread releases the lock, allowing other threads to acquire a lock and access the | ||
resource. | ||
@@ -132,3 +132,3 @@ | ||
**IMPORTANT:** Failure to call `release` will hold the mutex locked and will | ||
lilely deadlock the application. Make sure to call `release` under all circumstances | ||
likely deadlock the application. Make sure to call `release` under all circumstances | ||
and handle exceptions accordingly. | ||
@@ -242,3 +242,3 @@ | ||
**IMPORTANT:** Failure to call `release` will hold the semaphore locked and will | ||
lilely deadlock the application. Make sure to call `release` under all circumstances | ||
likely deadlock the application. Make sure to call `release` under all circumstances | ||
and handle exceptions accordingly. | ||
@@ -330,3 +330,3 @@ | ||
The second argument of `withTimeout` is | ||
the timout in milliseconds. After the timeout is exceeded, the promsie returned by | ||
the timeout in milliseconds. After the timeout is exceeded, the promise returned by | ||
`acquire` and `runExclusive` will reject. The latter will not run the provided callback in | ||
@@ -333,0 +333,0 @@ case of an timeout. |
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
37377
569