Skip to content

RetryPolicy

RetryPolicy = object

Defined in: Types/RetryPolicy.ts:14

An immutable policy describing retry limits and backoff delay strategies.

const policy: RetryPolicy = RetryPolicy.constant({
  attempts: 3,
  delay: Duration.seconds(1),
});

readonly attempts: number

Defined in: Types/RetryPolicy.ts:14


readonly getDelay: (attempt) => Duration

Defined in: Types/RetryPolicy.ts:14

number

Duration