parameters: (self)
docstring: Shutdown the process or thread pool
docstring_summary: Shutdown the process or thread pool
docstring_tokens: Shutdown the process or thread pool
function: def terminate(self):
          """Shutdown the process or thread pool"""
          if self._pool is not None:
              self._pool.close()
              self._pool.terminate()  # terminate does a join()
              self._pool = None
function_tokens: def terminate ( self ) : if self . _pool is not None : self . _pool . close ( ) self . _pool . terminate ( ) # terminate does a join() self . _pool = None