UNPKG

sanka-baileyss

Version:

WhatsApp API Modification By Sanka_Vollerei

7 lines 248 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> }