type alias BackoffStrategy
Since 0.1.0

Backoff strategy applied to a RetryPolicy's base delay.

  • fixed — the delay is constant across attempts
  • exponential — the delay doubles each attempt (delay · 2^(attempt-1))

Named distinctly from the scheduler's SchedulerBackoff to avoid a barrel collision.

Definition

"fixed" | "exponential"

Usage

import { type BackoffStrategy } from "common/src/index.ts";