parameters: (self, timeout=None)
return_statement: return self._proc.wait(timeout)
docstring: Wait for process to terminate and, if process is a children
          of os.getpid(), also return its exit code, else None.
  
          If the process is already terminated immediately return None
          instead of raising NoSuchProcess.
  
          If timeout (in seconds) is specified and process is still alive
          raise TimeoutExpired.
  
          To wait for multiple Process(es) use psutil.wait_procs().
docstring_summary: Wait for process to terminate and, if process is a children
          of os.getpid(), also return its exit code, else None.
docstring_tokens: Wait for process to terminate and if process is a children of os . getpid () also return its exit code else None .
function: def wait(self, timeout=None):
          """Wait for process to terminate and, if process is a children
          of os.getpid(), also return its exit code, else None.
  
          If the process is already terminated immediately return None
          instead of raising NoSuchProcess.
  
          If timeout (in seconds) is specified and process is still alive
          raise TimeoutExpired.
  
          To wait for multiple Process(es) use psutil.wait_procs().
          """
          if timeout is not None and not timeout >= 0:
              raise ValueError("timeout must be a positive integer")
          return self._proc.wait(timeout)
function_tokens: def wait ( self , timeout = None ) : if timeout is not None and not timeout >= 0 : raise ValueError ( "timeout must be a positive integer" ) return self . _proc . wait ( timeout )