Type Alias ISemaphoreUnacquiredState

ISemaphoreUnacquiredState: {
    acquiredSlots: string[];
    acquiredSlotsCount: number;
    freeSlotsCount: number;
    limit: number;
    type: typeof SEMAPHORE_STATE["UNACQUIRED"];
}

Represents a semaphore where the requester has not acquired any slots. At least one slot remains available for acquisition.

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

Type declaration

  • acquiredSlots: string[]

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

  • acquiredSlotsCount: number

    The number of slots currently held by other requesters.

  • freeSlotsCount: number

    The number of slots currently available for acquisition.

  • limit: number

    The maximum number of slots that can be simultaneously held.

  • type: typeof SEMAPHORE_STATE["UNACQUIRED"]

    The state type indicator.