Class: Bunny::SystemTimer
- Inherits:
-
SystemTimer
- Object
- SystemTimer
- Bunny::SystemTimer
- Defined in:
- lib/bunny/system_timer.rb
Overview
Used for ruby < 1.9.x
Instance Method Summary collapse
Instance Method Details
#timeout(seconds, exception) ⇒ Object
7 8 9 10 11 |
# File 'lib/bunny/system_timer.rb', line 7 def timeout(seconds, exception) timeout_after(seconds) do yield end end |