UNPKG
@fizzxydev/baileys-pro
Version:
latest (8.7.2)
8.7.2
8.7.1
8.6.11
8.6.10
8.6.8
8.5.12
8.5.4
8.4.7
8.4.6
8.3.4
8.3.3
8.2.0
8.1.1
8.0.0
WhatsApp API Modified By Fizzxy
tentang-fizzxy.netlify.app
@fizzxydev/baileys-pro
/
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
:
() =>
Promise
<T> | T):
Promise
<T>; };
export
type
Mutex
=
ReturnType
<
typeof
makeMutex>;
export
declare
const
makeKeyedMutex
:
() =>
{ mutex<T>(
key
:
string
,
task
:
() =>
Promise
<T> | T):
Promise
<T>; };