value()
public
Waits for thr to complete (via Thread#join) and returns its value.
a = Thread.new { 2 + 2 }
a.value
Show source
static VALUE
thread_value(VALUE self)
{
rb_thread_t *th;
GetThreadPtr(self, th);
thread_join(th, DELAY_INFTY);
return th->value;
}