Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MR414N-ID
GitHub Repository: MR414N-ID/botku2
Path: blob/master/node_modules/@adiwajshing/baileys/lib/Utils/make-mutex.d.ts
1129 views
1
export declare const makeMutex: () => {
2
mutex<T>(code: () => T | Promise<T>): Promise<T>;
3
};
4
export declare type Mutex = ReturnType<typeof makeMutex>;
5
export declare const makeKeyedMutex: () => {
6
mutex<T>(key: string, task: () => T | Promise<T>): Promise<T>;
7
};
8
9