blob: 2ea95053013d13b2d7deae2d8e4b247aea3a4e6a (
plain)
1
2
3
4
5
6
7
8
9
|
import { IBackOffOptions, BackoffOptions } from "./options";
export { BackoffOptions, IBackOffOptions };
/**
* Executes a function with exponential backoff.
* @param request the function to be executed
* @param options options to customize the backoff behavior
* @returns Promise that resolves to the result of the `request` function
*/
export declare function backOff<T>(request: () => Promise<T>, options?: BackoffOptions): Promise<T>;
|