UNPKG
secret-company-ltd
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
WhatsApp api Modification
github.com/SecretCompany777/station
SecretCompany777/station
secret-company-ltd
/
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> }