UNPKG

@dastinz001/dasbotz-baileys

Version:

WhatsApp API Modification By Dastin

8 lines (7 loc) 262 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>; };