UNPKG
@suzakuteam/baileys
Version:
latest (1.0.5)
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
WhatsApp API For Interact In WhatsApp
github.com/SuzakuTeam/Baileys
@suzakuteam/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> }