UNPKG

@microfleet/ioredis-lock

Version:

Node distributed locking using redis with ioredis adapter

40 lines (39 loc) 956 B
/** * Contains the potential errors thrown by a lock. */ /** * The constructor for a LockAcquisitionError. Thrown or returned when a lock * could not be acquired. * * @constructor * @extends Error * * @param {string} message The message to assign the error */ export declare class LockAcquisitionError extends Error { constructor(message: string); } /** * The constructor for a LockReleaseError. Thrown or returned when a lock * could not be released. * * @constructor * @extends Error * * @param {string} message The message to assign the error */ export declare class LockReleaseError extends Error { constructor(message: string); } /** * The constructor for a LockExtendError. Thrown or returned when a lock * could not be extended. * * @constructor * @extends Error * * @param {string} message The message to assign the error */ export declare class LockExtendError extends Error { constructor(message: string); }