value() public

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

   a = Thread.new { 2 + 2 }
   a.value   #=> 4
Show source
Register or log in to add new notes.