@ginden/blinkstick-v2
Version:
Improved Blickstick API for Node.js
6 lines • 327 B
TypeScript
/**
* 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