Type Alias ISemaphoreLimitReachedState

ISemaphoreLimitReachedState: {
    acquiredSlots: string[];
    limit: number;
    type: typeof SEMAPHORE_STATE["LIMIT_REACHED"];
}

Represents a semaphore where all available slots have been acquired. No additional slots can be acquired until existing slots are released or expire.

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

Type declaration

  • acquiredSlots: string[]

    Array of unique identifiers for all entities that currently hold the acquired slots.

  • limit: number

    The maximum number of slots that can be simultaneously held.

  • type: typeof SEMAPHORE_STATE["LIMIT_REACHED"]

    The state type indicator.