struct

Crig::HttpClient::ExponentialBackoff

Inherits Crig::HttpClient::RetryPolicy < Struct < Value < Object

Constructors

new(start : Time::Span, factor : Float64, max_duration : Time::Span | Nil = nil, max_retries : Int32 | Nil = nil)
Source

Instance methods

factor
Source
max_duration
Source
max_duration=(max_duration : Time::Span | Nil)
Source
max_retries
Source
retry(error : Error, last_retry : Tuple(Int32, Time::Span) | Nil) : Time::Span | Nil
Source
set_reconnection_time(duration : Time::Span) : Nil

ameba:disable Naming/AccessorMethodName

Source
start
Source
start=(start : Time::Span)
Source