UNPKG

@whiskeysockets/baileys

Version:

A WebSockets library for interacting with WhatsApp Web

9 lines 362 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>; }; export type KeyedMutex = ReturnType<typeof makeKeyedMutex>; //# sourceMappingURL=make-mutex.d.ts.map