From e25feba67b3563bce86f430340e8e1b5827bc465 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 15 Dec 2005 15:57:06 +0000 Subject: * signal.c (Init_signal): revert C++ style comment. [ruby-dev:28041] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/timeout.rb | 49 +++++++++++++++++++++++++++++++++---------------- 1 file changed, 33 insertions(+), 16 deletions(-) (limited to 'lib/timeout.rb') diff --git a/lib/timeout.rb b/lib/timeout.rb index 734d87f204..dc92964c0b 100644 --- a/lib/timeout.rb +++ b/lib/timeout.rb @@ -1,41 +1,52 @@ +#-- # = timeout.rb # # execution timeout # -# = Synopsis +# = Copyright # -# require 'timeout' -# status = Timeout::timeout(5) { -# # Something that should be interrupted if it takes too much time... -# } +# Copyright:: (C) 2000 Network Applied Communication Laboratory, Inc. +# Copyright:: (C) 2000 Information-technology Promotion Agency, Japan +# +#++ # # = Description # -# A way of performing a potentially long-running operation in a thread, and terminating -# it's execution if it hasn't finished by a fixed amount of time. +# A way of performing a potentially long-running operation in a thread, and +# terminating it's execution if it hasn't finished within fixed amount of +# time. # -# Previous versions of timeout didn't provide use a module for namespace. This version +# Previous versions of timeout didn't use a module for namespace. This version # provides both Timeout.timeout, and a backwards-compatible #timeout. # -# = Copyright +# = Synopsis +# +# require 'timeout' +# status = Timeout::timeout(5) { +# # Something that should be interrupted if it takes too much time... +# } # -# Copyright:: (C) 2000 Network Applied Communication Laboratory, Inc. -# Copyright:: (C) 2000 Information-technology Promotion Agency, Japan module Timeout + + ## # Raised by Timeout#timeout when the block times out. + class Error