UNPKG
@aetherzcode/baileyszx
Version:
latest (1.0.9)
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
WhatsApp API
github.com/aetherzcode/baileyszx
aetherzcode/baileyszx
@aetherzcode/baileyszx
/
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> }