Skip to main content

Module exponential_backoff

Module exponential_backoff 

Source
Expand description

Retry-backoff calculations.

The helpers determine whether a retry delay remains active and derive retry-streak caps from duration bounds. Delay calculations saturate at the configured maximum where applicable.

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
Derives a retry-streak cap from the whole-second ratio of max to min.