class ThreadsWait

def all_waits


Raises exceptions in the same manner as +next_wait+.

supplied for the method, it is executed for each thread termination.
Waits until all of the specified threads are terminated. If a block is
def all_waits
  until @threads.empty?
    th = next_wait
    yield th if block_given?
  end
end