module

SimpleRetry

Instance methods

try_to(max_attempts : Int | Nil = nil, retry_on : Exception.class | Nil = nil, raise_on : Exception.class | Nil = nil, & : UInt64, Exception | Nil, Time::Span -> )

Immediate retry

Source
try_to(base_interval : Time::Span, retry_on : Exception.class | Nil = nil, raise_on : Exception.class | Nil = nil, max_attempts : Int | Nil = nil, max_interval : Time::Span | Nil = nil, max_elapsed_time : Time::Span | Nil = nil, randomise : Time::Span | Nil = nil, & : UInt64, Exception | Nil, Time::Span -> )

Retry with backoff

ameba:disable Metrics/CyclomaticComplexity

Source