UNPKG

@radzztnzx/rbail

Version:

Pro Bails based by Whiskeysockets, Modified by RadzzOffc

8 lines 302 B
export declare const makeMutex: () => { mutex<T>(code: () => Promise<T> | T): Promise<T>; }; export type Mutex = ReturnType<typeof makeMutex>; export declare const makeKeyedMutex: () => { mutex<T>(key: string, task: () => Promise<T> | T): Promise<T>; }; //# sourceMappingURL=make-mutex.d.ts.map