AniLink - v3.0.0
    Preparing search index...

    Interface RetryDelayInput

    The inputs to computeNextRetryDelay: everything the retry-delay decision needs, so the retry loop itself stays free of delay branching.

    interface RetryDelayInput {
        attempt: number;
        budget: RetryBudget | undefined;
        budgetState: RetryBudgetState | undefined;
        normalized: AniLinkError;
        policy: RetryPolicy | null;
        rawError: unknown;
        wasProbe: boolean;
    }
    Index
    attempt: number

    The zero-based index of the attempt that just failed.

    budget: RetryBudget | undefined

    The configured budget, when one is set.

    budgetState: RetryBudgetState | undefined

    The live retry-budget window, when a budget is configured.

    normalized: AniLinkError

    The normalized failure for the attempt.

    policy: RetryPolicy | null

    The active retry policy, or null when retries are disabled.

    rawError: unknown

    The raw thrown value, used for Retry-After extraction.

    wasProbe: boolean

    Whether the failed attempt was the reserved half-open breaker probe.