Type Alias SemaphoreAcquireSettings

SemaphoreAcquireSettings: {
    context: IReadableContext;
    key: string;
    limit: number;
    slotId: string;
    ttl: TimeSpan | null;
}

Internal settings for semaphore slot acquisition operations. This is used internally by adapters and should not be directly instantiated in application code.

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

Type declaration

  • context: IReadableContext

    The current execution context where operations are performed.

  • key: string

    The unique identifier for this semaphore instance.

  • limit: number

    Maximum number of slots available in this semaphore.

  • slotId: string

    The unique identifier for the slot being acquired. Used to track which slot is acquired by which holder.

  • ttl: TimeSpan | null

    Time-to-live duration for the acquired slot. null means the slot does not expire.