MutexAcquireError #
Available since 2.60.0
Inherits from the standard JavaScript Error class (not from KuzzleError).
withLock rejects with this error when it could not acquire the lock within its retryAttempts + 1 attempts. The callback was not run.
Before 2.60.0, withLock rejected with a plain Error carrying the same message.
constructor(key: string, attempts: number)| Argument | Type | Description |
|---|---|---|
key | string | The lock's resource identifier |
attempts | number | Number of acquisition attempts made |