Sha256: 6fcfbcd1434b0da65527e134ecdb8b6c22e8b4195ba197b79498ebc481a4cf11

Contents?: true

Size: 451 Bytes

Versions: 51

Compression:

Stored size: 451 Bytes

Contents

module Bunny
  # Unifies Ruby standard library's Timeout (which is not accurate on
  # Ruby 1.8) and SystemTimer (the gem)
  Timeout = if RUBY_VERSION < "1.9"
              begin
                require "bunny/system_timer"
                Bunny::SystemTimer
              rescue LoadError
                Timeout
              end
            else
              Timeout
            end

  # Backwards compatibility
  # @private
  Timer = Timeout
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
bunny-1.7.1 lib/bunny/timeout.rb
bunny-2.0.0.rc1 lib/bunny/timeout.rb
bunny-1.7.0 lib/bunny/timeout.rb
bunny-1.6.3 lib/bunny/timeout.rb
bunny-1.6.2 lib/bunny/timeout.rb
bunny-1.6.1 lib/bunny/timeout.rb
bunny-1.6.0 lib/bunny/timeout.rb
bunny-1.5.1 lib/bunny/timeout.rb
bunny-1.6.0.rc2 lib/bunny/timeout.rb
bunny-1.6.0.rc1 lib/bunny/timeout.rb
bunny-1.6.0.pre1 lib/bunny/timeout.rb
bunny-1.5.0 lib/bunny/timeout.rb
bunny-1.5.0.pre2 lib/bunny/timeout.rb
bunny-1.5.0.pre1 lib/bunny/timeout.rb
bunny-1.4.1 lib/bunny/timeout.rb
bunny-1.4.0 lib/bunny/timeout.rb
bunny-1.3.1 lib/bunny/timeout.rb
bunny-1.3.0 lib/bunny/timeout.rb
bunny-1.2.2 lib/bunny/timeout.rb
bunny-1.2.1 lib/bunny/timeout.rb