# RetryPolicy

```ts
type RetryPolicy = {
  baseDelayMs: number;
  factor: number;
  maxAttempts: number;
  maxDelayMs: number;
};
```

Defined in: packages/asset-uploader-expo/src/retry.ts:15

Retry policy — exponential backoff with full jitter, bounded attempts.

Pure and dependency-free so it is unit-tested on its own. The upload task
wraps every byte transfer (single PUT and each multipart part) and every
control-plane call in `withRetry`.

What is retried: a network failure (no HTTP status at all — airplane mode,
a dropped cell, a timeout), 5xx, 408 and 429. What is not: every other 4xx,
because the same request will fail the same way. A 403 from object storage
is handled by the caller (an expired presigned URL is refreshed, then
retried) — it is not a backoff case.

## Properties

### baseDelayMs

```ts
baseDelayMs: number;
```

Defined in: packages/asset-uploader-expo/src/retry.ts:19

Delay before the first retry, before jitter. Default 1 000 ms.

***

### factor

```ts
factor: number;
```

Defined in: packages/asset-uploader-expo/src/retry.ts:23

Multiplier per attempt. Default 2.

***

### maxAttempts

```ts
maxAttempts: number;
```

Defined in: packages/asset-uploader-expo/src/retry.ts:17

Total attempts including the first. Default 8.

***

### maxDelayMs

```ts
maxDelayMs: number;
```

Defined in: packages/asset-uploader-expo/src/retry.ts:21

Cap on a single delay. Default 60 000 ms — a rural cell can be gone for minutes.