UNPKG

@ginden/blinkstick-v2

Version:
6 lines 327 B
/** * Retries a function n times with an increasing delay. * Delays are 0, 10, 40, 90, 160, ... ms by default */ export declare function retryNTimes<V>(maxRetries: number, fn: () => Promise<V>, errorData?: Record<string, unknown>, wait?: (n: number) => Promise<void>): Promise<V>; //# sourceMappingURL=retry-n-times.d.ts.map