@matrixai/async-locks
Advanced tools
Comparing version 3.1.2 to 3.2.0
@@ -14,2 +14,5 @@ import { AbstractError } from '@matrixai/errors'; | ||
} | ||
export { ErrorAsyncLocks, ErrorAsyncLocksTimeout, ErrorAsyncLocksLockBoxConflict, ErrorAsyncLocksBarrierCount, }; | ||
declare class ErrorAsyncLocksSemaphoreLimit<T> extends ErrorAsyncLocks<T> { | ||
static description: string; | ||
} | ||
export { ErrorAsyncLocks, ErrorAsyncLocksTimeout, ErrorAsyncLocksLockBoxConflict, ErrorAsyncLocksBarrierCount, ErrorAsyncLocksSemaphoreLimit, }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ErrorAsyncLocksBarrierCount = exports.ErrorAsyncLocksLockBoxConflict = exports.ErrorAsyncLocksTimeout = exports.ErrorAsyncLocks = void 0; | ||
exports.ErrorAsyncLocksSemaphoreLimit = exports.ErrorAsyncLocksBarrierCount = exports.ErrorAsyncLocksLockBoxConflict = exports.ErrorAsyncLocksTimeout = exports.ErrorAsyncLocks = void 0; | ||
const errors_1 = require("@matrixai/errors"); | ||
@@ -21,2 +21,6 @@ class ErrorAsyncLocks extends errors_1.AbstractError { | ||
ErrorAsyncLocksBarrierCount.description = 'Barrier must be created with a count >= 0'; | ||
class ErrorAsyncLocksSemaphoreLimit extends ErrorAsyncLocks { | ||
} | ||
exports.ErrorAsyncLocksSemaphoreLimit = ErrorAsyncLocksSemaphoreLimit; | ||
ErrorAsyncLocksSemaphoreLimit.description = 'Semaphore must be created with a limit >= 1'; | ||
//# sourceMappingURL=errors.js.map |
@@ -6,4 +6,5 @@ export { default as Lock } from './Lock'; | ||
export { default as Barrier } from './Barrier'; | ||
export { default as Semaphore } from './Semaphore'; | ||
export * as utils from './utils'; | ||
export * as errors from './errors'; | ||
export * from './types'; |
@@ -32,3 +32,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.errors = exports.utils = exports.Barrier = exports.LockBox = exports.RWLockWriter = exports.RWLockReader = exports.Lock = void 0; | ||
exports.errors = exports.utils = exports.Semaphore = exports.Barrier = exports.LockBox = exports.RWLockWriter = exports.RWLockReader = exports.Lock = void 0; | ||
var Lock_1 = require("./Lock"); | ||
@@ -44,2 +44,4 @@ Object.defineProperty(exports, "Lock", { enumerable: true, get: function () { return __importDefault(Lock_1).default; } }); | ||
Object.defineProperty(exports, "Barrier", { enumerable: true, get: function () { return __importDefault(Barrier_1).default; } }); | ||
var Semaphore_1 = require("./Semaphore"); | ||
Object.defineProperty(exports, "Semaphore", { enumerable: true, get: function () { return __importDefault(Semaphore_1).default; } }); | ||
exports.utils = __importStar(require("./utils")); | ||
@@ -46,0 +48,0 @@ exports.errors = __importStar(require("./errors")); |
{ | ||
"name": "@matrixai/async-locks", | ||
"version": "3.1.2", | ||
"version": "3.2.0", | ||
"author": "Roger Qiu", | ||
@@ -5,0 +5,0 @@ "description": "Asynchronous locking utilities", |
Sorry, the diff of this file is not supported yet
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
82432
33
1127