# Cannot find in documentation anymore what tl is in Timeout::timeout(to) do |tl|

**URL:** <https://www.ruby-forum.com/t/cannot-find-in-documentation-anymore-what-tl-is-in-timeout-timeout-to-do-tl/171290>\
**Category:** Ruby\
**Created:** [June 30, 2009, 4:06am UTC](https://www.ruby-forum.com/t/cannot-find-in-documentation-anymore-what-tl-is-in-timeout-timeout-to-do-tl/171290 "2009-06-30T04:06:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xeno\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/958977/32.png) [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Post date:** [June 30, 2009, 4:06am UTC](https://www.ruby-forum.com/t/cannot-find-in-documentation-anymore-what-tl-is-in-timeout-timeout-to-do-tl/171290/1 "2009-06-30T04:06:01Z")

</div>

begin  
Timeout::timeout(OverallTimeout) do |tl|  
# Until I find out what this is, Forget it…  
# No doc on tl anymore!  
#puts “tl: #{tl}”  
probe\_threads.each { |t| t.join }  
puts “done”  
end  
rescue Timeout::Error =\> eo  
puts “#{eo.message}, exiting before joining all probe threads.”  
end

Can anyone help? Is it deprecated perhaps?

---

<div class="post-metadata">

**Author:** ![Xeno\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/958977/32.png) [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Post date:** [June 30, 2009, 4:46am UTC](https://www.ruby-forum.com/t/cannot-find-in-documentation-anymore-what-tl-is-in-timeout-timeout-to-do-tl/171290/2 "2009-06-30T04:46:54Z")

</div>

2009/6/30 Xeno C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Â Â end
> 
> Can anyone help? Â Is it deprecated perhaps?

According to the document[1], tl is same to OverallTimeout.

BTW, I noticed the 1.8.6 document[2] is wrong in block parameter.  
timeout(sec, exception=Error) {|if sec == nil or sec.zero?| …}

I guess it is related to the bug in the source code of 1.8.6 and 1.8.7  
The first line of method timeout  
return yield if sec == nil or sec.zero?  
should be  
return yield(sec) if sec == nil or sec.zero?

[1] [http://ruby-doc.org/core-1.9/classes/Timeout.html#M006441](http://ruby-doc.org/core-1.9/classes/Timeout.html#M006441)  
[2]  
[http://ruby-doc.org/stdlib/libdoc/timeout/rdoc/classes/Timeout.html#M004621](http://ruby-doc.org/stdlib/libdoc/timeout/rdoc/classes/Timeout.html#M004621)

Regards,

Park H.
