The acquireWriterBlocking 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: SharedLockAquireBlockingSettingsReturns true if the lock is not already acquired otherwise false is returned.
The acquireWriterBlockingOrFail 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: SharedLockAquireBlockingSettingsThe runWriterBlocking method wraps an Invokable or Task with the acquireBlocking and release method.
Optionalsettings: SharedLockAquireBlockingSettingsThe runWriterBlockingOrFail method wraps an Invokable or Task with the acquireBlockingOrFail and release method.
Optionalsettings: SharedLockAquireBlockingSettings
IMPORT_PATH:
"@daiso-tech/core/shared-lock/contracts"