Exponential Backoff

Simple Exponential Backoff in Ruby


Installation

$ gem install exponential_backoff

Usage

require 'exponential_backoff'

ExponentialBackoff.try(3) do
  res = Hippie.get(url)
  fail if res.error?
end

API

ExponentialBackoff.try(max_number_of_tries) { request }