module SimpleRetry
Extended Modules
Defined in:
simple_retry.crInstance Method Summary
-
#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
-
#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
Instance Method Detail
def 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
def 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