Core
Framework v2.x
2

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)

ArgumentTypeDescription
key
string
The lock's resource identifier
attempts
number
Number of acquisition attempts made