exit()
public
Terminates the currently running thread and schedules another thread to be
run. If this thread is already marked to be
killed, exit returns the Thread. If this is the main thread, or the last thread, exit the process.
Show source
static VALUE
rb_thread_exit(void)
{
return rb_thread_kill(GET_THREAD()->self);
}