summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-30 18:47:00 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-30 18:47:00 +0000
commite742a446c8864e3988537d06022312c708f9e176 (patch)
tree06e7b539f455ff781f33d916177713970c0ab05d /thread.c
parent5697f69baa942ae117c66322bca0088cbb38557f (diff)
* thread.c (Thread.async_interrupt_timing): fix RDoc.
:never is not used any more. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/thread.c b/thread.c
index fa5b1598ab..00529dada5 100644
--- a/thread.c
+++ b/thread.c
@@ -1585,7 +1585,7 @@ async_interrupt_timing_arg_check_i(VALUE key, VALUE val)
*
* 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 @@ async_interrupt_timing_arg_check_i(VALUE key, VALUE val)
*
* # 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 @@ async_interrupt_timing_arg_check_i(VALUE key, VALUE val)
*
* # 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 @@ async_interrupt_timing_arg_check_i(VALUE key, VALUE val)
* }
*
* # 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.
* }
*