From 93722650262ebf4659da0579040563a353f8d51a Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 21 Nov 2005 23:58:10 +0000 Subject: [PATCH] Updated rdoc to fix timeout.rb and include rinda directory. By Eric Hodel git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/.document | 2 ++ lib/rinda/.document | 3 +++ lib/timeout.rb | 50 ++++++++++++++++++++++++++++++--------------- 3 files changed, 38 insertions(+), 17 deletions(-) create mode 100644 lib/rinda/.document diff --git a/lib/.document b/lib/.document index 98dadba57f..14bb46deec 100644 --- a/lib/.document +++ b/lib/.document @@ -28,6 +28,7 @@ optionparser.rb pathname.rb pstore.rb rational.rb +rinda resolv.rb set.rb shellwords.rb @@ -37,5 +38,6 @@ test/unit.rb thread.rb thwait.rb time.rb +timeout.rb uri yaml.rb diff --git a/lib/rinda/.document b/lib/rinda/.document new file mode 100644 index 0000000000..598977af68 --- /dev/null +++ b/lib/rinda/.document @@ -0,0 +1,3 @@ +rinda.rb +ring.rb +tuplespace.rb diff --git a/lib/timeout.rb b/lib/timeout.rb index 36811a1040..dc92964c0b 100644 --- a/lib/timeout.rb +++ b/lib/timeout.rb @@ -1,7 +1,24 @@ +#-- # = timeout.rb # # execution timeout # +# = Copyright +# +# 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 within fixed amount of +# time. +# +# Previous versions of timeout didn't use a module for namespace. This version +# provides both Timeout.timeout, and a backwards-compatible #timeout. +# # = Synopsis # # require 'timeout' @@ -9,31 +26,24 @@ # # Something that should be interrupted if it takes too much time... # } # -# = 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. -# -# Previous versions of timeout didn't provide use a module for namespace. This version -# provides both Timeout.timeout, and a backwards-compatible #timeout. -# -# = Copyright -# -# 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