@jiminp/tooltool
    Preparing search index...

    Function getDelayForExponentialBackoff

    • Computes the delay for a given attempt using exponential backoff.

      Parameters

      Returns number

      Delay in milliseconds.

      Computes init_delay * multiplier ** (attempts - 1), capped by max_delay when provided. Inputs are not validated; nonfinite or extreme values can produce nonfinite delays, which sleep rejects.