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