(self, timeout=None)
return self._proc.wait(timeout)
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().
Wait for process to terminate and, if process is a children
        of os.getpid(), also return its exit code, else None.
Wait for process to terminate and if process is a children of os . getpid () also return its exit code else None .
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)
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 )