From f78c6576ec462c4ed05245582ac1f19dd928ce37 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 21 Nov 2005 23:58:10 +0000 Subject: Updated rdoc to fix timeout.rb and include rinda directory. By Eric Hodel git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/.document | 2 ++ lib/rinda/.document | 3 +++ lib/timeout.rb | 48 ++++++++++++++++++++++++++++++++---------------- 3 files changed, 37 insertions(+), 16 deletions(-) create mode 100644 lib/rinda/.document diff --git a/lib/.document b/lib/.document index 98dadba57..14bb46dee 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 000000000..598977af6 --- /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 36811a104..dc92964c0 100644 --- a/lib/timeout.rb +++ b/lib/timeout.rb @@ -1,39 +1,49 @@ +#-- # = 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