retryRequest
function retryRequest<T>(send, options?): Promise<T>;Calls send up to attempts (default: 3) times, retrying upon encountering a transient
status code (500, 502, 503, 504, 408) or a network connection drop (ECONNRESET, ETIMEDOUT, etc.).
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”() => Promise<T>
The asynchronous function to execute
options?
Section titled “options?”RetryRequestOptions = {}
Retry options
Returns
Section titled “Returns”Promise<T>
The resolved result of send()