AWS Amplify JS API
AWS Amplify JS Dev Center
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Mutex
acquire
is
Locked
run
Exclusive
Hierarchy
Mutex
Implements
MutexInterface
Index
Methods
acquire
is
Locked
run
Exclusive
Methods
acquire
acquire
(
)
:
Promise
<
Releaser
>
Returns
Promise
<
Releaser
>
is
Locked
is
Locked
(
)
:
boolean
Returns
boolean
run
Exclusive
run
Exclusive<T>
(
callback
:
Worker
<
T
>
)
:
Promise
<
T
>
Type parameters
T
Parameters
callback:
Worker
<
T
>
Returns
Promise
<
T
>