The acquireBlocking method acquires an slots only if the slot limit is not reached.
If the slot limit is reached, it retries every settings.interval until settings.time is reached.
Optionalsettings: SemaphoreAquireBlockingSettingsReturns true if the slot limit is not reached otherwise false is returned.
The acquireBlockingOrFail method acquires an slots only if the slot limit is not reached.
If the slot limit is reached, it retries every settings.interval until settings.time is reached.
Throws an error if the slot limit is reached after the given settings.time.
Optionalsettings: SemaphoreAquireBlockingSettingsThe runBlocking method wraps an Invokable or Task with the acquireBlocking and release method.
Optionalsettings: SemaphoreAquireBlockingSettingsThe runBlockingOrFail method wraps an Invokable or Task with the acquireBlockingOrFail and release method.
Optionalsettings: SemaphoreAquireBlockingSettings
IMPORT_PATH:
"@daiso-tech/core/semaphore/contracts"