lifecycle-utils
Preparing search index...
acquireLock
Function acquireLock
acquireLock
<
S
=
any
,
K
extends
string
=
string
>
(
scope
:
S
,
key
:
K
,
acquireLockSignal
?:
AbortSignal
,
)
:
Promise
<
Lock
<
S
,
K
>
>
Acquire a lock for a given
scope
and
key
.
Type Parameters
S
=
any
K
extends
string
=
string
Parameters
scope
:
S
key
:
K
Optional
acquireLockSignal
:
AbortSignal
Returns
Promise
<
Lock
<
S
,
K
>
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
lifecycle-utils
Loading...
Acquire a lock for a given
scope
andkey
.