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