class Rhod::Backoffs::Backoff

Attributes

state[R]

Public Class Methods

new(state = nil) click to toggle source
# File lib/rhod/backoffs/backoff.rb, line 4
def initialize(state = nil)
  @state = state
end

Public Instance Methods

iterate() click to toggle source
# File lib/rhod/backoffs/backoff.rb, line 8
def iterate
  raise NotImplementedError
end
next() click to toggle source
# File lib/rhod/backoffs/backoff.rb, line 12
def next
  @state, result = iterate(state)
  result
end