Options
All
  • Public
  • Public/Protected
  • All
Menu

Module fallback/retry

Index

Functions Fallback

Fallback Functions

  • fallbackRetry<T>(runner: T, maxRetryNumber?: number, retryAfterSeconds?: number): T
  • fallback to retry

    since

    5.15.0

    Type Parameters

    • T

    Parameters

    • runner: T

      async function, return promise

    • maxRetryNumber: number = 3

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

    • Optional retryAfterSeconds: number

    Returns T