LockOptions
An object describing characteristics of the lock you want to create.
Value members
Inherited methods
Concrete fields
If true
, the lock request will only be granted if it is not already held. If it cannot be granted, the callback
will be invoked with null
instead of a Lock instance. The default value is false
.
If true
, the lock request will only be granted if it is not already held. If it cannot be granted, the callback
will be invoked with null
instead of a Lock instance. The default value is false
.
Either "exclusive"
or "shared"
. The default value is "exclusive"
.
Either "exclusive"
or "shared"
. The default value is "exclusive"
.
An AbortSignal (the signal
property of an AbortController); if specified and the AbortController is
aborted, the lock request is dropped if it was not already granted.
An AbortSignal (the signal
property of an AbortController); if specified and the AbortController is
aborted, the lock request is dropped if it was not already granted.
If true
, then any held locks with the same name will be released, and the request will be granted, preempting
any queued requests for it. The default value is false
.
If true
, then any held locks with the same name will be released, and the request will be granted, preempting
any queued requests for it. The default value is false
.