Class: Thread
- Inherits:
-
Object
- Object
- Thread
- Defined in:
- lib/timeout/extensions.rb
Overview
Core extensions to Thread
Adds accessors to customize timeout and sleep within a thread, if you have a better friendlier implementation of both methods, or if your code breaks with the stdlib implementations.
Instance Attribute Summary collapse
-
#sleep_handler ⇒ Object
Returns the value of attribute sleep_handler.
-
#timeout_handler ⇒ Object
Returns the value of attribute timeout_handler.
Instance Attribute Details
#sleep_handler ⇒ Object
Returns the value of attribute sleep_handler.
12 13 14 |
# File 'lib/timeout/extensions.rb', line 12 def sleep_handler @sleep_handler end |
#timeout_handler ⇒ Object
Returns the value of attribute timeout_handler.
11 12 13 |
# File 'lib/timeout/extensions.rb', line 11 def timeout_handler @timeout_handler end |