class Async::Container::Generic
def wait_until_ready
Wait until all the children instances have indicated that they are ready.
def wait_until_ready while true Console.debug(self) do |buffer| buffer.puts "Waiting for ready:" @state.each do |child, state| buffer.puts "\t#{child.inspect}: #{state}" end end self.sleep if self.status?(:ready) Console.logger.debug(self) do |buffer| buffer.puts "All ready:" @state.each do |child, state| buffer.puts "\t#{child.inspect}: #{state}" end end return true end end end