module SimpleRetry

Extended Modules

Defined in:

simple_retry.cr

Instance Method Summary

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


[View source]
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


[View source]