function autoRetryimport { autoRetry } from "https://deno.land/x/somefn@v0.27.0/js/err.ts"; autoRetry<T extends Array<any>, R>(fn: (...rest: T) => Promise<R>, unnamed 1?: { retry?: number; isRetryable?: (err: Error) => boolean; delayms?: number; timeout?: number; }): (...rest: T) => Promise<R>[高阶函数] 网络错误时自动重试 Type ParametersT extends Array<any>RParametersfn: (...rest: T) => Promise<R>函数本身, 需要为异步 optionalunnamed 1: { retry?: number; isRetryable?: (err: Error) => boolean; delayms?: number; timeout?: number; } = [UNSUPPORTED]参数 Returns(...rest: T) => Promise<R>