class_docstr: Executes *nproc* tasks in parallel after forking.
class_docstr_tok: ["Executes","*","nproc","*","tasks","in","parallel","after","forking","."]
code: def terminate(self) -> None:
      for tid in list(self._precvs):
          self._procs[tid].terminate()
          self._result_funcs.pop(tid)
          self._procs.pop(tid)
          self._precvs.pop(tid)
          self._pworking -= 1
  
file_path: sphinx/sphinx/util/parallel.py
imports: from __future__ import annotations
  import os
  import time
  import traceback
  from math import sqrt
  from typing import TYPE_CHECKING, Any, Callable
  from sphinx.errors import SphinxParallelError
  from sphinx.util import logging
label_desc: Use image node_id 5 for calling the ParallelTasks obj's underlying member method code with example usage: obj.terminate() without return types