UNPKG
neroxbails
Version:
latest (4.0.2)
4.0.2
4.0.1
4.0.0
3.0.8
3.0.7
3.0.6
3.0.5
3.0.3
3.0.2
3.0.1
3.0.0
baileys whatsapp-api
npmjs.com/package/neroxkira
neroxbails
/
lib
/
Utils
/
make-mutex.d.ts
7 lines
•
248 B
TypeScript
View Raw
1
2
3
4
5
6
7
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> }