parameters: (self, processes, timeout=30)
docstring: Wait for a set of processes to exit.
  
          @param processes: List of Sandbox.Process instances as returned by
                            start_coordinator, start_server, and start_clients
                            whose exit should be waited on.
          @param timeout: Seconds to wait for exit before giving up and throwing
                          an exception. (default: 30)
docstring_summary: Wait for a set of processes to exit.
docstring_tokens: Wait for a set of processes to exit .
function: def wait(self, processes, timeout=30):
          """Wait for a set of processes to exit.
  
          @param processes: List of Sandbox.Process instances as returned by
                            start_coordinator, start_server, and start_clients
                            whose exit should be waited on.
          @param timeout: Seconds to wait for exit before giving up and throwing
                          an exception. (default: 30)
          """
          start = time.time()
          for i, p in enumerate(processes):
              while p.proc.returncode is None:
                  self.sandbox.checkFailures()
                  time.sleep(.1)
                  if time.time() - start > timeout:
                      raise Exception('timeout = %ds exceeded %s' %
                                      (timeout, self.log_subdir))
              if self.verbose:
                  print('%s finished' % p.sonce)
function_tokens: def wait ( self , processes , timeout = 30 ) : start = time . time ( ) for i , p in enumerate ( processes ) : while p . proc . returncode is None : self . sandbox . checkFailures ( ) time . sleep ( .1 ) if time . time ( ) - start > timeout : raise Exception ( 'timeout = %ds exceeded %s' % ( timeout , self . log_subdir ) ) if self . verbose : print ( '%s finished' % p . sonce )