7.2.2.5. shutdown_executor

shutdown_executor(name, wait=True)[source]

Clean-up the resources associated with the Executor.

Parameters:
  • name (str) – Executor name.
  • wait (bool) – If True then shutdown will not return until all running futures have finished executing and the resources used by the executor have been reclaimed.
Returns:

Shutdown pool executor.

Return type:

dict[concurrent.futures.Future,threading.Thread|multiprocess.Process]