7.2.2.9. shutdown_executors

shutdown_executors(wait=True, executors=None)[source]

Clean-up the resources of all initialized executors.

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

  • executors (ExecutorFactory) – Executor factory.

Returns:

Shutdown pool executor.

Return type:

dict[str,dict]