method

value

v1_9_1_378 - 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