1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/timeout.rb: Clarify timeout duration types. Patch by Alf Mikula.

[Ruby 1.9 - Bug #4791]
	* lib/net/http.rb: ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2011-06-16 05:24:12 +00:00
parent b7528b5edb
commit dbf9baeddf
3 changed files with 14 additions and 5 deletions

View file

@ -36,7 +36,8 @@ module Timeout
# Perform an operation in a block, timing it out if it takes longer
# than +sec+ seconds to complete.
#
# +sec+:: number of seconds to wait for the block to terminate
# +sec+:: Number of seconds to wait for the block to terminate. Any number
# may be used, including Floats to specify fractional seconds.
# +klass+:: Exception Class to raise if the block fails to terminate
# in +sec+ seconds. Omitting will use the default, Timeout::Error
#