[前][次][番号順一覧][スレッド一覧]

ruby-changes:37347

From: hsbt <ko1@a...>
Date: Wed, 28 Jan 2015 21:32:50 +0900 (JST)
Subject: [ruby-changes:37347] hsbt:r49428 (trunk): * thread.c: Improve documentation for Thread#value

hsbt	2015-01-28 21:32:31 +0900 (Wed, 28 Jan 2015)

  New Revision: 49428

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49428

  Log:
    * thread.c: Improve documentation for Thread#value
      [Bug #10694][ruby-core:67324][ci skip]

  Modified files:
    trunk/ChangeLog
    trunk/thread.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 49427)
+++ ChangeLog	(revision 49428)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jan 28 21:32:24 2015  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* thread.c: Improve documentation for Thread#value
+	  [Bug #10694][ruby-core:67324][ci skip]
+
 Tue Jan 27 16:04:19 2015  NAKAMURA Usaku  <usa@r...>
 
 	* tool/redmine-backporter.rb: added `!` command.
Index: thread.c
===================================================================
--- thread.c	(revision 49427)
+++ thread.c	(revision 49428)
@@ -959,10 +959,14 @@ thread_join_m(int argc, VALUE *argv, VAL https://github.com/ruby/ruby/blob/trunk/thread.c#L959
  *  call-seq:
  *     thr.value   -> obj
  *
- *  Waits for +thr+ to complete, using #join, and returns its value.
+ *  Waits for +thr+ to complete, using #join, and returns its value or raises
+ *  the exception which terminated the thread.
  *
  *     a = Thread.new { 2 + 2 }
  *     a.value   #=> 4
+ *
+ *     b = Thread.new { raise 'something went wrong' }
+ *     b.value   #=> RuntimeError: something went wrong
  */
 
 static VALUE

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]