Preparing search index...
The search index is not available
lifecycle-utils
lifecycle-utils
acquireLock
Function acquireLock
acquire
Lock
<
S
,
K
>
(
scope
,
key
,
acquireLockSignal
?
)
:
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
AsyncDisposableHandle
AsyncDisposeAggregator
DisposableHandle
DisposeAggregator
DisposedError
EventRelay
EventRelayListenerHandle
LongTimeout
MultiKeyMap
Separator
State
StateChangeListenerHandle
AsyncDisposeAggregatorTarget
AsyncDisposeAggregatorWrappedTarget
DisposeAggregatorTarget
Lock
ReadonlyMultiKeyMap
acquireLock
clearLongTimeout
isLockActive
setLongTimeout
Loading...
Acquire a lock for a given
scope
andkey
.