Function runWithRetry

  • Type Parameters

    • T

    Parameters

    • func: (() => Promise<T>)
        • (): Promise<T>
        • Returns Promise<T>

    • onRetry: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • retryPolicy: RetryPolicy
    • timeout: number

    Returns Promise<T>