Type Alias IWriterLockAdapterState

IWriterLockAdapterState: { expiration: Date | null; owner: string }

Represents the persistent state of a writer lock in storage. Contains information about ownership and expiration time.

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

Type declaration

  • expiration: Date | null

    The date and time when the writer lock expires and becomes available for others to acquire. null indicates an indefinite lock with no expiration.

  • owner: string

    The unique identifier of the entity that currently holds this writer lock.