- runWithRetry<T>(func, onRetry, retryPolicy, timeout): Promise<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>