PyDocs

Nav

Concurrent Execution

ProcessPoolExecutor.terminate_workers

concurrent.futures

method of ProcessPoolExecutor · Added in 3.14 (source) not WASI
  • ProcessPoolExecutor.terminate_workers()
Attempts to terminate the executor's workers.
Iterates through all of the current worker processes and terminates
each one that is still alive.

After terminating workers, the pool will be in a broken state
and no longer usable (for instance, new tasks should not be
submitted).
0 Examples
No examples for concurrent.futures/ProcessPoolExecutor.terminate_workers.
See Also
No see-alsos for concurrent.futures/ProcessPoolExecutor.terminate_workers
0 Notes
No notes for ProcessPoolExecutor.terminate_workers