struct Retriable::ExponentialBackoff
- Retriable::ExponentialBackoff
- Struct
- Value
- Object
Defined in:
retriable/exponential_backoff.crConstructors
Instance Method Summary
- #base_interval : Time::Span
- #base_interval=(base_interval : Time::Span)
- #intervals : Iterator(Time::Span)
- #max_interval : Time::Span
- #max_interval=(max_interval : Time::Span)
- #multiplier : Float64
- #multiplier=(multiplier : Float64)
- #rand_factor : Float64
- #rand_factor=(rand_factor : Float64)
- #random : Random
- #random=(random : Random)
- #randomize?
Constructor Detail
def self.new(base_interval : Time::Span, max_interval : Time::Span, rand_factor : Float64, multiplier : Float64, random : Random | Nil = nil)
#