UNPKG

@apiratorjs/locking-redis

Version:

An extension to the core @apiratorjs/locking library, providing Redis-based implementations of distributed mutexes and semaphores for true cross-process concurrency control in Node.js.

17 lines 468 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DistributedReleaser = void 0; class DistributedReleaser { constructor(_onRelease, _token) { this._onRelease = _onRelease; this._token = _token; } async release() { await this._onRelease(); } getToken() { return this._token; } } exports.DistributedReleaser = DistributedReleaser; //# sourceMappingURL=distributed-releaser.js.map