parameters: (self, timeout: float = -1, period: float = 1)
return_statement: return None
docstring: Waits for the specified ``timeout`` seconds, polling every ``period`` seconds
          for the processes to be done. Returns ``None`` if the processes are still running
          on timeout expiry. Negative timeout values are interpreted as "wait-forever".
          A timeout value of zero simply queries the status of the processes (e.g. equivalent
          to a poll).
  
          ..note: Multiprocesing library registers SIGTERM and SIGINT signal handlers that raise
                  ``SignalException`` when the signals received. It is up to the consumer of the code
                  to properly handle the exception. It is important not to swallow the exception otherwise
                  the process would not terminate. Example of the typical workflow can be:
  
          .. code-block:: python
              pc = start_processes(...)
              try:
                  pc.wait(1)
                  .. do some other work
              except SignalException as e:
                  pc.shutdown(e.sigval, timeout=30)
  
          If SIGTERM or SIGINT occurs, the code above will try to shutdown child processes by propagating
          received signal. If child processes will not terminate in the timeout time, the process will send
          the SIGKILL.
docstring_summary: Waits for the specified ``timeout`` seconds, polling every ``period`` seconds
          for the processes to be done. Returns ``None`` if the processes are still running
          on timeout expiry. Negative timeout values are interpreted as "wait-forever".
          A timeout value of zero simply queries the status of the processes (e.g. equivalent
          to a poll).
docstring_tokens: Waits for the specified timeout seconds polling every period seconds for the processes to be done . Returns None if the processes are still running on timeout expiry . Negative timeout values are interpreted as wait - forever . A timeout value of zero simply queries the status of the processes ( e . g . equivalent to a poll ) .
function: def wait(self, timeout: float = -1, period: float = 1) -> Optional[RunProcsResult]:
          """
          Waits for the specified ``timeout`` seconds, polling every ``period`` seconds
          for the processes to be done. Returns ``None`` if the processes are still running
          on timeout expiry. Negative timeout values are interpreted as "wait-forever".
          A timeout value of zero simply queries the status of the processes (e.g. equivalent
          to a poll).
  
          ..note: Multiprocesing library registers SIGTERM and SIGINT signal handlers that raise
                  ``SignalException`` when the signals received. It is up to the consumer of the code
                  to properly handle the exception. It is important not to swallow the exception otherwise
                  the process would not terminate. Example of the typical workflow can be:
  
          .. code-block:: python
              pc = start_processes(...)
              try:
                  pc.wait(1)
                  .. do some other work
              except SignalException as e:
                  pc.shutdown(e.sigval, timeout=30)
  
          If SIGTERM or SIGINT occurs, the code above will try to shutdown child processes by propagating
          received signal. If child processes will not terminate in the timeout time, the process will send
          the SIGKILL.
          """
  
          if timeout == 0:
              return self._poll()
  
          if timeout < 0:
              timeout = sys.maxsize
  
          expiry = time.time() + timeout
          while time.time() < expiry:
              pr = self._poll()
              if pr:
                  return pr
              time.sleep(period)
  
          return None
function_tokens: def wait ( self , timeout : float = - 1 , period : float = 1 ) -> Optional [ RunProcsResult ] : if timeout == 0 : return self . _poll ( ) if timeout < 0 : timeout = sys . maxsize expiry = time . time ( ) + timeout while time . time ( ) < expiry : pr = self . _poll ( ) if pr : return pr time . sleep ( period ) return None