A function whose retriable version to create.
The configuration with which the retriable version of the original function will be created.
A an asynchronous function that returns a Promise resolving to an object containing the details of the retry process including a boolean indicating whether it has succeeded or not. This newly created function does not throw.
Registers an async callback that keeps running in the background until it is unregistered. Waits for the
callback Promise to resolve and sleeps for an additional duration
ms and invokes the callback again.
An asynchronous function that will keep running in the background.
The amount of time (in ms) to sleep after the callback Promise resolves before invoking the callback again.
A an asynchronous function that unregisters the callback. The function returns a Promise that resolves when the very last interval finishes processing.
Registers an async callback that keeps running in the background until it is unregistered. Waits for the
callback Promise to resolve and sleeps for an additional duration
ms and invokes the callback again.
A an asynchronous function that unregisters the callback. The function returns a Promise that resolves when the very last interval finishes processing.
Registers an async callback that keeps running in the background until it is unregistered. Waits for the
callback Promise to resolve and sleeps for an additional duration
ms and invokes the callback again.
An asynchronous function that will keep running in the background.
A function that returns the amount of time (in ms) to sleep after the callback Promise resolves before invoking the callback again.
A an asynchronous function that unregisters the callback. The function returns a Promise that resolves when the very last interval finishes processing.
Registers an async callback that keeps running in the background until it is unregistered. Waits for the
callback Promise to resolve and sleeps for an additional duration
ms and invokes the callback again.
A an asynchronous function that unregisters the callback. The function returns a Promise that resolves when the very last interval finishes processing.
Sleeps for a specified number of milliseconds.
Duration to sleep (in ms).
A Promise that resolves after the specified duration.
Generated using TypeDoc
Creates a retriable version of a given function, which, when invoked, is continuously retried according to the specified retry config until it succeeds. The new function returns a Promise that resolves when the original function succeeds or
maxTrialCount
is reached.