UNPKG
neroxbailx
Version:
latest (0.0.5)
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
baileys whatsapp-api
npmjs.com/package/neroxkira
neroxbailx
/
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> }