class

Phoenix::Timer

Inherits Reference < Object

Constants

BACKOFF_STEPS = [1, 2, 5, 10]
DEFAULT_BACKOFF = ->(tries : Int32) : Time::Span do (BACKOFF_STEPS.fetch(tries - 1, BACKOFF_STEPS.last)).seconds end

Constructors

new(callback : Proc(Nil), timer_calc : Proc(Int32, Time::Span))
Source

Instance methods

reset
Source
schedule_timeout
Source