UNPKG
@zendlora/baileys
Version:
latest (1.1.0)
1.1.0
1.0.1
1.0.0
WhatsApp API Modified By Zendlora
@zendlora/baileys
/
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>; };