UNPKG

@daiso-tech/core

Version:

The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.

29 lines 871 B
/** * @module Lock */ import {} from "../../time-span/implementations/_module.js"; /** * Enumeration of lock operational states. * Represents the possible status conditions a lock can have at any point in time. * * IMPORT_PATH: `"@daiso-tech/core/lock/contracts"` * @group Contracts */ export const LOCK_STATE = { /** * Lock has expired and is no longer held by any owner. * The lock can be acquired by a new requester. */ EXPIRED: "EXPIRED", /** * Lock is currently held by another owner and cannot be acquired. * Must wait for the owner to release it or for it to expire. */ UNAVAILABLE: "UNAVAILABLE", /** * Lock is currently held by the requesting owner. * The owner has exclusive access to the protected resource. */ ACQUIRED: "ACQUIRED", }; //# sourceMappingURL=lock-state.contract.js.map