[ruby/timeout] [DOC] Missing documents
https://github.com/ruby/timeout/commit/301ad4cfdc
This commit is contained in:
parent
24e0f6fcab
commit
bb6cf76362
@ -23,18 +23,19 @@
|
|||||||
# Copyright:: (C) 2000 Information-technology Promotion Agency, Japan
|
# Copyright:: (C) 2000 Information-technology Promotion Agency, Japan
|
||||||
|
|
||||||
module Timeout
|
module Timeout
|
||||||
|
# The version
|
||||||
VERSION = "0.4.1"
|
VERSION = "0.4.1"
|
||||||
|
|
||||||
# Internal error raised to when a timeout is triggered.
|
# Internal error raised to when a timeout is triggered.
|
||||||
class ExitException < Exception
|
class ExitException < Exception
|
||||||
def exception(*)
|
def exception(*) # :nodoc:
|
||||||
self
|
self
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Raised by Timeout.timeout when the block times out.
|
# Raised by Timeout.timeout when the block times out.
|
||||||
class Error < RuntimeError
|
class Error < RuntimeError
|
||||||
def self.handle_timeout(message)
|
def self.handle_timeout(message) # :nodoc:
|
||||||
exc = ExitException.new(message)
|
exc = ExitException.new(message)
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user