Sha256: 7f751fad16d1048b44284cc33559e8b578b47b515e8e0330db31c2a06d39378c

Contents?: true

Size: 276 Bytes

Versions: 6

Compression:

Stored size: 276 Bytes

Contents

# -*- encoding: utf-8; mode: ruby -*-

require "system_timer"

module Bunny
  # Used for Ruby before 1.9
  class SystemTimer
    def self.timeout(seconds, exception)
      ::SystemTimer.timeout_after(seconds) do
        yield
      end
    end
  end # SystemTimer
end # Bunny

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bunny-0.9.0.pre6 lib/bunny/system_timer.rb
bunny-0.9.0.pre5 lib/bunny/system_timer.rb
bunny-0.9.0.pre4 lib/bunny/system_timer.rb
bunny-0.9.0.pre3 lib/bunny/system_timer.rb
bunny-0.9.0.pre2 lib/bunny/system_timer.rb
bunny-0.9.0.pre1 lib/bunny/system_timer.rb