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