Refreshes (extends) the current slot's TTL if it is expirable. Updates the expiration time to prevent the slot from timing out.
Optionalttl: ITimeSpanNew TTL duration. If not provided, uses the semaphore's original TTL
true if the slot was successfully refreshed, false if not currently held
Executes an async function while holding a semaphore slot. Automatically acquires a slot before execution and releases it after completion. Throws an error if a slot cannot be acquired.
The return value of the function
Base operations for managing semaphore slot acquisition, release, and refresh cycles. Provides both safe (boolean-returning) and strict (error-throwing) versions of slot operations.
IMPORT_PATH:
"@daiso-tech/core/semaphore/contracts"