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