[ruby/timeout] updated doc string

https://github.com/ruby/timeout/commit/4be6423de4

Co-authored-by: Jeremy Evans <code@jeremyevans.net>
This commit is contained in:
Cosmic Oppai 2024-11-18 15:35:47 +05:30 committed by git
parent e97225b182
commit 7dc7aab4e9

View File

@ -144,7 +144,7 @@ module Timeout
# +sec+:: Number of seconds to wait for the block to terminate. Any non-negative number
# or nil may be used, including Floats to specify fractional seconds. A
# value of 0 or +nil+ will execute the block without any timeout.
# Any negative value will raise the ArgumentError
# Any negative number will raise an ArgumentError.
# +klass+:: Exception Class to raise if the block fails to terminate
# in +sec+ seconds. Omitting will use the default, Timeout::Error
# +message+:: Error message to raise with Exception Class.