2000-05-30

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2000-05-30 04:24:17 +00:00
parent 869b1efeb4
commit 9a1716fdb2
21 changed files with 245 additions and 185 deletions

View file

@ -29,6 +29,7 @@ class TimeoutError<StandardError
end
def timeout(sec)
return yield if sec == nil
begin
x = Thread.current
y = Thread.start {