UNPKG
@skyzopedia/baileys-mod
Version:
latest (6.0.16)
6.0.16
6.0.15
6.0.14
6.0.13
6.0.12
6.0.11
6.0.10
6.0.9
6.0.8
6.0.7
6.0.5
6.0.2
6.0.1
6.0.0
5.0.8
5.0.7
5.0.6
5.0.5
5.0.4
5.0.3
5.0.2
5.0.1
5.0.0
4.0.5
4.0.3
4.0.2
4.0.1
4.0.0
3.0.9
3.0.8
3.0.5
3.0.2
WhatsApp API Modification By K
www.npmjs.com/package/@whiskeysockets/baileys
@skyzopedia/baileys-mod
/
lib
/
Utils
/
make-mutex.d.ts
8 lines
(7 loc)
•
262 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
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>; };