Type Alias ILockAcquiredState

ILockAcquiredState: {
    remainingTime: TimeSpan | null;
    type: typeof LOCK_STATE["ACQUIRED"];
}

Represents a lock that is currently held by the requesting owner. The owner has exclusive access to the protected resource for the duration of the remaining time.

IMPORT_PATH: "@daiso-tech/core/lock/contracts"

Type declaration

  • remainingTime: TimeSpan | null

    The time remaining before the lock expires. null indicates an indefinite lock with no expiration time.

  • type: typeof LOCK_STATE["ACQUIRED"]

    The state type indicator.