diff options
Diffstat (limited to 'node_modules/exponential-backoff/dist/backoff.d.ts')
| -rw-r--r-- | node_modules/exponential-backoff/dist/backoff.d.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/exponential-backoff/dist/backoff.d.ts b/node_modules/exponential-backoff/dist/backoff.d.ts new file mode 100644 index 0000000..2ea9505 --- /dev/null +++ b/node_modules/exponential-backoff/dist/backoff.d.ts @@ -0,0 +1,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>; |