UNPKG
@joanimi/baileys
Version:
latest (3.0.10)
3.0.10
3.0.8
3.0.7
3.0.6
3.0.5
3.0.4
3.0.3
3.0.0
2.2.6
2.2.5
2.2.4
2.2.3
2.2.2
2.0.2
2.0.1
1.0.0
An edited Model from whiskeysockets/baileys
host.joanimi-world.site/About-JoAnimi
@joanimi/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>; };