UNPKG

nest-apirator-locking

Version:

A NestJS module that provides distributed locking capabilities using @apiratorjs/locking utilities. It offers implementations for distributed mutexes and semaphores to help synchronize concurrent operations across distributed systems.

7 lines (6 loc) 457 B
import { DistributedMutexConstructorProps, DistributedSemaphoreConstructorProps, IDistributedMutex, IDistributedSemaphore } from "@apiratorjs/locking/dist/src/types"; export declare const LockingFactoryImplToken: unique symbol; export interface ILockingFactoryImpl { createDistributedMutex(props: DistributedMutexConstructorProps): IDistributedMutex; createDistributedSemaphore(props: DistributedSemaphoreConstructorProps): IDistributedSemaphore; }