This method is deprecated or moved on the latest stable version.
The last existing version (v1_8_7_330) is shown here.
kill!()
public
Terminates thr without calling ensure clauses and schedules
another thread to be run, returning the terminated Thread. If this is the main thread, or the last thread, exits
the process.
/*
* call-seq:
* thr.exit! => thr
* thr.kill! => thr
* thr.terminate! => thr
*
* Terminates <i>thr</i> without calling ensure clauses and schedules
* another thread to be run, returning the terminated <code>Thread</code>.
* If this is the main thread, or the last thread, exits the process.
*
* See <code>Thread#exit</code> for the safer version.
*/
static VALUE
rb_thread_kill_bang(thread)
VALUE thread;
{
rb_thread_t th = rb_thread_check(thread);
rb_kill_thread(th, THREAD_NO_ENSURE);
return thread;
}