Class: Thread

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#sleep_handlerObject

Returns the value of attribute sleep_handler.



12
13
14
# File 'lib/timeout/extensions.rb', line 12

def sleep_handler
  @sleep_handler
end

#timeout_handlerObject

Returns the value of attribute timeout_handler.



11
12
13
# File 'lib/timeout/extensions.rb', line 11

def timeout_handler
  @timeout_handler
end