跳到主要内容
版本:Next

retryWith

Callable

  • retryWith<T>(retryFn: T, retryTimes?: number, options?: { receiver?: any; throwOriginError?: boolean }): (...args: Parameters<T>) => ReturnType<T>

  • wrap sync function with retry


    Type parameters

    • T: (...args: any[]) => unknown