Skip to content

Commit db0f860

Browse files
committed
merge revision(s) r49428: [Backport ruby#10694]
* thread.c: Improve documentation for Thread#value [Bug ruby#10694][ruby-core:67324][ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@49912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 51e8c81 commit db0f860

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Tue Mar 10 02:40:11 2015 SHIBATA Hiroshi <[email protected]>
2+
3+
* thread.c: Improve documentation for Thread#value
4+
[Bug #10694][ruby-core:67324][ci skip]
5+
16
Tue Mar 10 02:37:55 2015 SHIBATA Hiroshi <[email protected]>
27

38
* string.c: [DOC] Add missing documentation around String#chomp.

thread.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,10 +916,14 @@ thread_join_m(int argc, VALUE *argv, VALUE self)
916916
* call-seq:
917917
* thr.value -> obj
918918
*
919-
* Waits for +thr+ to complete, using #join, and returns its value.
919+
* Waits for +thr+ to complete, using #join, and returns its value or raises
920+
* the exception which terminated the thread.
920921
*
921922
* a = Thread.new { 2 + 2 }
922923
* a.value #=> 4
924+
*
925+
* b = Thread.new { raise 'something went wrong' }
926+
* b.value #=> RuntimeError: something went wrong
923927
*/
924928

925929
static VALUE

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define RUBY_VERSION "2.1.5"
22
#define RUBY_RELEASE_DATE "2015-03-10"
3-
#define RUBY_PATCHLEVEL 311
3+
#define RUBY_PATCHLEVEL 312
44

55
#define RUBY_RELEASE_YEAR 2015
66
#define RUBY_RELEASE_MONTH 3

0 commit comments

Comments
 (0)