Wait for tasks in FIFO order.
54 55 56 57 58
# File 'lib/async/barrier.rb', line 54 def wait while task = @tasks.shift task.wait end end