ruby-changes:26163
From: kazu <ko1@a...>
Date: Thu, 6 Dec 2012 00:48:21 +0900 (JST)
Subject: [ruby-changes:26163] kazu:r38220 (trunk): adjust style and fix typo and indent
kazu 2012-12-06 00:48:11 +0900 (Thu, 06 Dec 2012) New Revision: 38220 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38220 Log: adjust style and fix typo and indent Modified files: trunk/ChangeLog trunk/lib/timeout.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 38219) +++ ChangeLog (revision 38220) @@ -1,9 +1,10 @@ Wed Dec 5 04:50:17 2012 KOSAKI Motohiro <kosaki.motohiro@g...> + * lib/timeout.rb (Timeout#timeout): set - async_interrupt_timeing(:on_blocking) by default. + async_interrupt_timing(:on_blocking) by default. [Bug #7503] [ruby-core:50524] - * test/test_timeout.rb (#test_timeout_blocking): test for the above. + * test/test_timeout.rb (test_timeout_blocking): test for the above. * test/test_timeout.rb (test_timeout_immediate): ditto * test/test_timeout.rb (test_timeout_immediate2): ditto. Index: lib/timeout.rb =================================================================== --- lib/timeout.rb (revision 38219) +++ lib/timeout.rb (revision 38220) @@ -48,7 +48,7 @@ # Timeout</tt> into your classes so they have a #timeout method, as well as # a module method, so you can call it directly as Timeout.timeout(). def timeout(sec, klass = nil, immediate: false) #:yield: +sec+ - return yield(sec) if sec == nil or sec.zero? + return yield(sec) if sec == nil or sec.zero? Thread.async_interrupt_timing(klass ? klass : ExitException => immediate ? :immediate : :on_blocking) do exception = klass || Class.new(ExitException) begin -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/