Skip to main content

Module exponential_backoff

Module exponential_backoff 

Source

Functions§

continue_exponential_backoff
Returns false if the exponential backoff has expired based on the inputs
continue_exponential_backoff_secs
Returns false if the exponential backoff has expired based on the inputs
exponential_backoff_streak_cap
Smallest streak length n at which the quadratic curve min * n² saturates max. Bounds walk-back / retry-streak loops that consult continue_exponential_backoff: further iterations cannot change the verdict once n is reached. Operates at second precision; sub-second components of min and max are discarded, and min < 1s is clamped to 1s. Returns at least 1.