Public method that starts the Retrier
A boolean value that indicates if the process has been succeeded.
Method to override the default Retrier settings.
The options to be overridden
the Retrier instance
Factory method for creating a Retrier
The method that will be invoked on each try
Generated using TypeDoc
Utility class for retrying operations. Usage example:
const funcToRetry: () => Promise<boolean> = async () => { let hasSucceeded = false; // ... // custom logic // ... return hasSucceeded; } const retrierSuccess = await Retrier.Create(funcToRetry) .Setup({ retries: 3, retryIntervalMs: 1, timeoutMs: 1000 }) .Run();