Function fallbackRetry

  • fallback to retry

    Since

    5.15.0

    Type Parameters

    Parameters

    • runner: T

      async function, return promise

    • maxRetryNumber: number = 3

      the maximum number of times a runner should retry, default is 3

    • Optional retryAfterMSecond: number

      the wait milliseconds before retry

    Returns T