@newdash/newdash
Version:
javascript/typescript utility library
12 lines (11 loc) • 448 B
TypeScript
import { GeneralFunction } from "../types";
/**
* fallback to retry
*
* @since 5.15.0
* @category Fallback
* @param runner async function, return promise
* @param maxRetryNumber the maximum number of times a runner should retry, default is 3
* @param retryAfterMSecond the wait milliseconds before retry
*/
export declare function fallbackRetry<T extends GeneralFunction>(runner: T, maxRetryNumber?: number, retryAfterMSecond?: number): T;