ruby-changes:26029
From: ko1 <ko1@a...>
Date: Sat, 1 Dec 2012 03:47:10 +0900 (JST)
Subject: [ruby-changes:26029] ko1:r38086 (trunk): * thread.c (Thread.async_interrupt_timing): fix RDoc.
ko1 2012-12-01 03:47:00 +0900 (Sat, 01 Dec 2012) New Revision: 38086 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38086 Log: * thread.c (Thread.async_interrupt_timing): fix RDoc. :never is not used any more. Modified files: trunk/ChangeLog trunk/thread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 38085) +++ ChangeLog (revision 38086) @@ -1,3 +1,8 @@ +Sat Dec 1 03:45:47 2012 Koichi Sasada <ko1@a...> + + * thread.c (Thread.async_interrupt_timing): fix RDoc. + :never is not used any more. + Sat Dec 1 02:56:19 2012 Koichi Sasada <ko1@a...> * iseq.c: add RubyVM::InstructionSequence (ISeq) inspection methods. Index: thread.c =================================================================== --- thread.c (revision 38085) +++ thread.c (revision 38086) @@ -1585,7 +1585,7 @@ * * TODO (DOC): Thread#async_interrupt_timing is stacked. * TODO (DOC): check ancestors. - * TODO (DOC): to prevent all async interrupt, {Object => :never} works. + * TODO (DOC): to prevent all async interrupt, {Object => :defer} works. * * NOTE: Asynchronous interrupts are difficult to use. * If you need to communicate between threads, @@ -1595,7 +1595,7 @@ * * # example: Guard from Thread#raise * th = Thread.new do - * Thead.async_interrupt_timing(RuntimeError => :never) { + * Thead.async_interrupt_timing(RuntimeError => :defer) { * begin * # Thread#raise doesn't async interrupt here. * # You can write resource allocation code safely. @@ -1615,7 +1615,7 @@ * * # example: Guard from TimeoutError * require 'timeout' - * Thread.async_interrupt_timing(TimeoutError => :never) { + * Thread.async_interrupt_timing(TimeoutError => :defer) { * timeout(10){ * # TimeoutError doesn't occur here * Thread.async_interrupt_timing(TimeoutError => :on_blocking) { @@ -1627,14 +1627,14 @@ * } * * # example: Stack control settings - * Thread.async_interrupt_timing(FooError => :never) { - * Thread.async_interrupt_timing(BarError => :never) { + * Thread.async_interrupt_timing(FooError => :defer) { + * Thread.async_interrupt_timing(BarError => :defer) { * # FooError and BarError are prohibited. * } * } * * # example: check ancestors - * Thread.async_interrupt_timing(Exception => :never) { + * Thread.async_interrupt_timing(Exception => :defer) { * # all exceptions inherited from Exception are prohibited. * } * -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/