Utils
FetchRetryFunc
type FetchRetryFunc: (req, resp, attempt) => Promise<boolean>;
Called prior to each retry; return true to retry, false to abort.
Parameters
Parameter | Type |
---|---|
req | FetchRequest |
resp | FetchResponse |
attempt | number |
Returns
Promise
<boolean
>
Source
Was this page helpful?