instance method
Thread#run
() -> ::Thread
thr.run → thr
thread.c
View on GitHub ↗
VALUE
rb_thread_run(VALUE thread)
{
rb_thread_wakeup(thread);
rb_thread_schedule();
return thread;
}
Wakes up thr, making it eligible for scheduling.
Example
a = Thread.new { puts "a"; Thread.stop; puts "c" } sleep 0.1 while a.status!='sleep' puts "Got here" a.run a.join
This will produce:
Example
a Got here c
See also the instance method wakeup.
See also
#report_on_exception=
#set_trace_func
#report_on_exception
#status
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0