UNPKG

superchats

Version:

SuperChats is a premium library with unique features that control Whatsapp functions. With Superchats you can build service bots, multiservice chats or any system that uses whatsapp

8 lines (7 loc) 262 B
export declare const makeMutex: () => { mutex<T>(code: () => T | Promise<T>): Promise<T>; }; export type Mutex = ReturnType<typeof makeMutex>; export declare const makeKeyedMutex: () => { mutex<T>(key: string, task: () => T | Promise<T>): Promise<T>; };