Readonlyid: stringThe unique identifier for the slot holder (semaphore instance). Used to track which slots are acquired by this holder.
Readonlykey: IKeyThe unique identifier for this semaphore instance. Multiple semaphore instances with the same key share the same slot pool.
Readonlyttl: TimeSpan | nullThe time-to-live (TTL) duration before acquired slots automatically expire.
null indicates slots do not expire and must be explicitly released.
Retrieves the current state of the semaphore.
The current semaphore state (available slots, acquired slots, expiration status, etc.)
State and metadata methods for a semaphore instance. Provides read-only access to semaphore state and configuration properties.
IMPORT_PATH:
"@daiso-tech/core/semaphore/contracts"