Aller au contenu principal
Version: Next

retryWithAsync

Callable

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

  • wrap async function with retry


    Type parameters

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