Preparing search index...
The search index is not available
@zimtsui/coroutine-locks
@zimtsui/coroutine-locks
Mutex
Class Mutex
Hierarchy
Mutex
Index
Constructors
constructor
Methods
lock
throw
try
Lock
unlock
Constructors
constructor
new
Mutex
(
locked
?:
boolean
)
:
Mutex
Parameters
locked:
boolean
= false
Returns
Mutex
Methods
lock
lock
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
throw
throw
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
try
Lock
try
Lock
(
)
:
void
Returns
void
unlock
unlock
(
)
:
void
Throws
TryError
Returns
void
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
Modules
@zimtsui/coroutine-
locks
Mutex
constructor
lock
throw
try
Lock
unlock
Generated using
TypeDoc
Throws
TryError