# withRetry

**Kind:** Function

**Source:** [`atloria-monorepo/packages/doc-automation/src/v2/providers/retry.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/doc-automation/src/v2/providers/retry.ts#L87)

Execute an async operation with retry logic

## Signature

```ts
async function withRetry(operation: () => Promise<T>, config: RetryConfig): Promise<T>
```

## Parameters

| Name | Type |
|---|---|
| `operation` | `() => Promise<T>` |
| `config` | `RetryConfig` |

**Returns:** `Promise<T>`
