7.2.2.8. shutdown_executor

shutdown_executor(name=empty, sol_id=empty, wait=True, executors=None)[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.

  • executors (ExecutorFactory) – Executor factory.

Returns:

Shutdown pool executor.

Return type:

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