UNPKG

@maximai/maxim-js

Version:

Maxim AI JS SDK. Visit https://getmaxim.ai for more info.

13 lines (12 loc) 332 B
export declare class Semaphore { private static semaphores; private key; private maxLocks; private currentLocks; private queue; constructor(key: string, maxLocks: number); private static hash; acquire(): Promise<void>; release(): void; static get(key: string, maxLocks: number): Semaphore; }