Variable LOCK_STATEConst

LOCK_STATE: {
    ACQUIRED: "ACQUIRED";
    EXPIRED: "EXPIRED";
    UNAVAILABLE: "UNAVAILABLE";
} = ...

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"

Type declaration

  • ReadonlyACQUIRED: "ACQUIRED"

    Lock is currently held by the requesting owner. The owner has exclusive access to the protected resource.

  • ReadonlyEXPIRED: "EXPIRED"

    Lock has expired and is no longer held by any owner. The lock can be acquired by a new requester.

  • ReadonlyUNAVAILABLE: "UNAVAILABLE"

    Lock is currently held by another owner and cannot be acquired. Must wait for the owner to release it or for it to expire.