UNPKG

ts-retry

Version:

A little retry tool to execute a function until the function is successful. Can also bind a timeout to a function. This lib is usable in typescript, in javascript, in node, in SPA tools (rest, Vue, Svelte...) and browser (available in ESM and common js fo

7 lines (6 loc) 754 B
export type { RetryOptions } from "./retry"; export type { TooManyTries } from "./retry"; export type { AbortError } from "./retry"; export { getDefaultRetryOptions, isTooManyTries, isAbortError, retry, retryAsync, retryUntilDefined, retryAsyncUntilDefined, retryAsyncUntilDefinedDecorator, retryAsyncUntilResponse, retryAsyncUntilResponseDecorator, retryAsyncUntilTruthy, retryAsyncUntilTruthyDecorator, retryUntilTruthy, retryUntilTruthyDecorator, setDefaultRetryOptions, createExponetialDelay, createMutiplicableDelay, createRandomDelay, retryAsyncDecorator, retryDecorator } from "./retry"; export type { TimeoutError } from "./wait"; export { getDefaultDuration, isTimeoutError, setDefaultDuration, wait, waitUntil, waitUntilAsync, } from "./wait";