Sha256: 48d52f97e55256036d49c8231818cd312483d7d1b9e5962a3365a89b455b26ae

Contents?: true

Size: 233 Bytes

Versions: 6

Compression:

Stored size: 233 Bytes

Contents

# frozen_string_literal: true

module Dynamoid
  module Config
    # @private
    module BackoffStrategies
      class ConstantBackoff
        def self.call(sec = 1)
          -> { sleep sec }
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dynamoid-3.10.0 lib/dynamoid/config/backoff_strategies/constant_backoff.rb
dynamoid-3.9.0 lib/dynamoid/config/backoff_strategies/constant_backoff.rb
dynamoid-3.8.0 lib/dynamoid/config/backoff_strategies/constant_backoff.rb
dynamoid-3.7.1 lib/dynamoid/config/backoff_strategies/constant_backoff.rb
dynamoid-3.7.0 lib/dynamoid/config/backoff_strategies/constant_backoff.rb
dynamoid-3.6.0 lib/dynamoid/config/backoff_strategies/constant_backoff.rb