UNPKG
@dappaoffc/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.1
5.0.7
5.0.6
5.0.5
5.0.2
5.0.1
5.0.0
4.0.3
4.0.2
WhatsApp API Modification By Dappa
www.npmjs.com/package/@whiskeysockets/baileys
@dappaoffc/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>; };