mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[DOC] Re-apply r11000, 41256fd432
* eval.c (rb_thread_kill): fix Thread#kill docs, which returns the thread object in all cases. From: why the lucky stiff <why@ruby-lang.org>
This commit is contained in:
parent
c718f56ed9
commit
d233f9175c
1 changed files with 6 additions and 8 deletions
14
thread.c
14
thread.c
|
@ -2424,15 +2424,13 @@ thread_raise_m(int argc, VALUE *argv, VALUE self)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* thr.exit -> thr or nil
|
* thr.exit -> thr
|
||||||
* thr.kill -> thr or nil
|
* thr.kill -> thr
|
||||||
* thr.terminate -> thr or nil
|
* thr.terminate -> thr
|
||||||
*
|
*
|
||||||
* Terminates +thr+ and schedules another thread to be run.
|
* Terminates +thr+ and schedules another thread to be run, returning
|
||||||
*
|
* the terminated Thread. If this is the main thread, or the last
|
||||||
* If this thread is already marked to be killed, #exit returns the Thread.
|
* thread, exits the process.
|
||||||
*
|
|
||||||
* If this is the main thread, or the last thread, exits the process.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
|
|
Loading…
Add table
Reference in a new issue