Type Alias ISharedLockAdapterState

ISharedLockAdapterState: {
    reader: IReaderSemaphoreAdapterState | null;
    writer: IWriterLockAdapterState | null;
}

Represents the combined persistent state of a shared lock in storage. Contains both writer lock and reader semaphore state information.

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

Type declaration

  • reader: IReaderSemaphoreAdapterState | null

    The current state of the reader semaphore, or null if no reader semaphore exists or it has expired.

  • writer: IWriterLockAdapterState | null

    The current state of the writer lock, or null if no writer lock exists or it has expired.