Class: Mutex
utilities/object.Mutex
Constructors
constructor
• new Mutex(limit?
): Mutex
Parameters
Name | Type | Default value |
---|---|---|
limit | number | 1 |
Returns
Defined in
Accessors
available
• get
available(): boolean
Returns
boolean
Defined in
Methods
wait
▸ wait(): Promise
<() => void
>
Returns
Promise
<() => void
>