> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# FetchRetryFunc

```ts theme={null}
type FetchRetryFunc: (req, resp, attempt) => Promise<boolean>;
```

Called prior to each retry; return true to retry, false to abort.

## Parameters

| Parameter | Type                                                  |
| :-------- | :---------------------------------------------------- |
| `req`     | [`FetchRequest`](/sdk/content/classes/FetchRequest)   |
| `resp`    | [`FetchResponse`](/sdk/content/classes/FetchResponse) |
| `attempt` | `number`                                              |

## Returns

`Promise`\<`boolean`>

## Source

[utils/fetch.ts:66](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/utils/fetch.ts#L66)
