@zimtsui/coroutine-locks
Preparing search index...
Mutex
Class Mutex
Index
Constructors
constructor
Methods
acquire
isacquired
release
throw
tryacquire
Constructors
constructor
new
Mutex
(
acquired
?:
boolean
)
:
Mutex
Parameters
acquired
:
boolean
= false
Returns
Mutex
Methods
acquire
acquire
()
:
Promise
<
void
>
Returns
Promise
<
void
>
isacquired
isacquired
()
:
boolean
Returns
boolean
release
release
()
:
void
Returns
void
Throws
FailureToTry
if the mutex is already unlocked
throw
throw
(
err
:
Error
)
:
void
Parameters
err
:
Error
Returns
void
tryacquire
tryacquire
()
:
void
Returns
void
Throws
FailureToTry
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
acquire
isacquired
release
throw
tryacquire
@zimtsui/coroutine-locks
Loading...
Throws
FailureToTry if the mutex is already unlocked