@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.
9 lines • 373 B
TypeScript
import { types } from "@apiratorjs/locking";
export declare class DistributedReleaser implements types.IReleaser {
private readonly _onRelease;
private readonly _token;
constructor(_onRelease: () => Promise<void>, _token: types.AcquireToken);
release(): Promise<void>;
getToken(): types.AcquireToken;
}
//# sourceMappingURL=distributed-releaser.d.ts.map