UNPKG
@ryzenofc/baileys
Version:
latest (8.1.7)
8.1.7
8.1.5
8.1.4
8.1.3
8.1.2
8.1.0
Lightweight full-featured typescript/javascript WhatsApp Web API
github.com/RyzenOfc/Baileys
@ryzenofc/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>; };