Sha256: 4ac6ffda6563788a7ac4ec6de737f45f31b7a8efac220efc406929b10f04ac1a

Contents?: true

Size: 218 Bytes

Versions: 7

Compression:

Stored size: 218 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dynamoid-3.5.0 lib/dynamoid/config/backoff_strategies/constant_backoff.rb
dynamoid-3.4.1 lib/dynamoid/config/backoff_strategies/constant_backoff.rb
dynamoid-3.4.0 lib/dynamoid/config/backoff_strategies/constant_backoff.rb
dynamoid-3.3.0 lib/dynamoid/config/backoff_strategies/constant_backoff.rb
dynamoid-3.2.0 lib/dynamoid/config/backoff_strategies/constant_backoff.rb
dynamoid-3.1.0 lib/dynamoid/config/backoff_strategies/constant_backoff.rb
dynamoid-3.0.0 lib/dynamoid/config/backoff_strategies/constant_backoff.rb