UNPKG
@dastinz001/dasbotz-baileys
Version:
latest (2.3.6)
2.3.6
2.3.5
2.3.4
WhatsApp API Modification By Dastin
github.com/SankaVollereii/Sanka-Baileys
@dastinz001/dasbotz-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>; };