AbstractAbstractacquireAcquires the lock, waiting if necessary until it is available.
Optionalsignal: AbortSignal | nullAn optional AbortSignal to cancel the acquire operation.
A promise that resolves to a function that releases the lock.
AbstractreleaseReleases the lock.
Acquires the lock, executes the callback, and releases the lock.
Optionalsignal: AbortSignal | nullAn optional AbortSignal to cancel the acquire operation.
The result of the callback.
Interface representing a lockable resource.
A lockable resource can be acquired and released to ensure exclusive access.