7.2.2.7. shutdown_executor

shutdown_executor(name=empty, sol_id=empty, wait=True)[source]

Clean-up the resources associated with the Executor.

Parameters:
  • name (str) – Executor name.
  • sol_id (int) – Solution id.
  • 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,Thread|Process]