- Preparing search index...
- The search index is not available
yatter
- retry<F>(fun: F, __namedParameters?: {
max: undefined | number;
}): (<T>(this: T, ...args: Parameters<F>) => Promise<Awaited<ReturnType<F>>>)
-
Type Parameters
-
F extends AnyFunction<any>
Parameters
-
fun: F
-
__namedParameters: {
max: undefined | number;
} = {}
Returns (<T>(this: T, ...args: Parameters<F>) => Promise<Awaited<ReturnType<F>>>)
-
- <T>(this: T, ...args: Parameters<F>): Promise<Awaited<ReturnType<F>>>
-
Parameters
-
this: T
-
Rest
...args: Parameters<F>
Returns Promise<Awaited<ReturnType<F>>>
函数抛出异常后,自动重试函数
Returns