Defined in: [src/retry/backoff-strategy.ts:68](https://github.com/strands-agents/harness-sdk/blob/e4284b561624d906e361535ef1f1adcd5ce3461b/strands-ts/src/retry/backoff-strategy.ts#L68)

Constant backoff: returns the same delay for every retry.

## Implements

-   [`BackoffStrategy`](/pr-cms-3457/docs/api/typescript/BackoffStrategy/index.md)

## Constructors

### Constructor

```ts
new ConstantBackoff(opts?): ConstantBackoff;
```

Defined in: [src/retry/backoff-strategy.ts:71](https://github.com/strands-agents/harness-sdk/blob/e4284b561624d906e361535ef1f1adcd5ce3461b/strands-ts/src/retry/backoff-strategy.ts#L71)

#### Parameters

| Parameter | Type |
| --- | --- |
| `opts` | [`ConstantBackoffOptions`](/pr-cms-3457/docs/api/typescript/ConstantBackoffOptions/index.md) |

#### Returns

`ConstantBackoff`

## Methods

### nextDelay()

```ts
nextDelay(ctx): number;
```

Defined in: [src/retry/backoff-strategy.ts:75](https://github.com/strands-agents/harness-sdk/blob/e4284b561624d906e361535ef1f1adcd5ce3461b/strands-ts/src/retry/backoff-strategy.ts#L75)

Returns the delay in milliseconds before the next attempt.

Must be a non-negative finite number. Implementations should treat `ctx.attempt < 1` as a programmer error.

#### Parameters

| Parameter | Type |
| --- | --- |
| `ctx` | [`BackoffContext`](/pr-cms-3457/docs/api/typescript/BackoffContext/index.md) |

#### Returns

`number`

#### Implementation of

[`BackoffStrategy`](/pr-cms-3457/docs/api/typescript/BackoffStrategy/index.md).[`nextDelay`](/pr-cms-3457/docs/api/typescript/BackoffStrategy/index.md#nextdelay)