Waits until all of the specified threads are terminated. If a block is supplied for the method, it is executed for each thread termination.
Raises exceptions in the same manner as next_wait.
# File lib/thwait.rb, line 126 def all_waits until @threads.empty? th = next_wait yield th if block_given? end end