method
new
v1_9_3_392 -
Show latest stable
- Class:
WEBrick::Utils::TimeoutHandler
new()public
No documentation available.
# File lib/webrick/utils.rb, line 173
def initialize
@timeout_info = Hash.new
Thread.start{
while true
now = Time.now
@timeout_info.each{|thread, ary|
ary.dup.each{|info|
time, exception = *info
interrupt(thread, info.object_id, exception) if time < now
}
}
sleep 0.5
end
}
end