ISemaphoreData: { limit: number }

Semaphore configuration persisted in the database. Defines the constraint for the resource pool.

A semaphore with limit=5 allows 5 concurrent requests. Additional requests must wait for slots to become available (expire or be released).

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

Type declaration

  • limit: number

    Maximum number of concurrent units/slots available. Number of concurrent requests that can hold slots simultaneously.