footprintjs - v11.2.0
    Preparing search index...

    Interface BackoffSpec

    The schedule exponentialBackoff builds a RetryPolicy.backoffMs function from.

    interface BackoffSpec {
        baseDelayMs: number;
        jitter?: BackoffJitter;
        maxDelayMs?: number;
        multiplier?: number;
        random?: () => number;
    }
    Index
    baseDelayMs: number

    The ceiling of the first wait (after attempt 1), in milliseconds — a finite number >= 0.

    jitter?: BackoffJitter

    How much of each wait is random. Default 'none': the wait IS the ceiling.

    maxDelayMs?: number

    The most a ceiling may grow to, in milliseconds — a finite number >= baseDelayMs. It caps the SCHEDULE before the jitter is drawn, so waits at the cap still spread ('equal' between maxDelayMs / 2 and maxDelayMs). It is not RetryPolicy.maxBackoffMs, which caps every wait after the draw, a stated one included. Absent: the ceiling grows until it saturates at Number.MAX_SAFE_INTEGER.

    multiplier?: number

    How much each ceiling grows over the one before — a finite number >= 1. Default 2.

    random?: () => number

    The jitter's random source, answering in [0, 1]. Default Math.random, looked up at each draw; a fixed one makes a test exact. A draw outside [0, 1] (or a throw) makes that wait the ceiling — never 0.