The acquireBlocking method acquires a lock only if the key is not already acquired by different owner.
If the lock is not acquired, it retries every settings.interval until settings.time is reached.
Optionalsettings: LockAquireBlockingSettingsReturns true if the lock is not already acquired otherwise false is returned.
The acquireBlockingOrFail method acquires a lock only if the key is not already acquired by different owner.
If the lock is not acquired, it retries every settings.interval until settings.time is reached.
Throws an error if the lock is already acquired by different owner.
Optionalsettings: LockAquireBlockingSettingsThe runBlocking method wraps an Invokable or Task with the acquireBlocking and release method.
Optionalsettings: LockAquireBlockingSettingsThe runBlockingOrFail method wraps an Invokable or Task with the acquireBlockingOrFail and release method.
Optionalsettings: LockAquireBlockingSettings
IMPORT_PATH:
"@daiso-tech/core/lock/contracts"