Sha256: cde99153afa38a08a45f4815b961eeab56124d0c69a6d35a39e05f6659957663

Contents?: true

Size: 183 Bytes

Versions: 7

Compression:

Stored size: 183 Bytes

Contents

# frozen_string_literal: true

class RailsTransactionalOutbox
  class ExponentialBackoff
    def self.backoff_for(multiplier, count)
      (multiplier * (2**count))
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rails-transactional-outbox-1.0.0 lib/rails_transactional_outbox/exponential_backoff.rb
rails-transactional-outbox-0.4.0 lib/rails_transactional_outbox/exponential_backoff.rb
rails-transactional-outbox-0.3.1 lib/rails_transactional_outbox/exponential_backoff.rb
rails-transactional-outbox-0.3.0 lib/rails_transactional_outbox/exponential_backoff.rb
rails-transactional-outbox-0.2.1 lib/rails_transactional_outbox/exponential_backoff.rb
rails-transactional-outbox-0.2.0 lib/rails_transactional_outbox/exponential_backoff.rb
rails-transactional-outbox-0.1.0 lib/rails_transactional_outbox/exponential_backoff.rb