Class: Dionysus::Utils::ExponentialBackoff
- Inherits:
-
Object
- Object
- Dionysus::Utils::ExponentialBackoff
- Defined in:
- lib/dionysus/utils/exponential_backoff.rb
Class Method Summary collapse
Class Method Details
.backoff_for(multiplier, count) ⇒ Object
4 5 6 |
# File 'lib/dionysus/utils/exponential_backoff.rb', line 4 def self.backoff_for(multiplier, count) (multiplier * (2**count)) end |