UNPKG
@renvyteam/baileys
Version:
latest (1.0.4)
1.0.4
WhatsApp API For Interact In WhatsApp
exonity.tech
@renvyteam/baileys
/
lib
/
Utils
/
make-mutex.d.ts
9 lines
(7 loc)
•
258 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
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> }