UNPKG

exponential-backoff

Version:

A utility that allows retrying a function with an exponential delay between attempts.

5 lines (4 loc) 112 B
export interface IDelay { apply: () => Promise<unknown>; setAttemptNumber: (attempt: number) => void; }