Setu-TS
    Preparing search index...

    Function fullJitterDelay

    • Full-jitter exponential backoff delay.

      Returns a uniformly random value in [0, min(maxMs, initialMs * 2^attempt)] (AWS's "full jitter"). Exported for unit testing the bounds; the supervisor is the only in-repo caller.

      Parameters

      • attempt: number

        Zero-based attempt index

      • initialMs: number

        First backoff window

      • maxMs: number

        Backoff ceiling

      Returns number

      The delay to wait before the next attempt, in milliseconds

      0.10.0