method

value

v1_8_7_72 - Show latest stable - Class: Thread
value()
public

Waits for thr to complete (via Thread#join) and returns its value.

   a = Thread.new { 2 + 2 }
   a.value   #=> 4