PyDocs

Nav

Concurrent Execution

Executor.shutdown

concurrent.futures

method of Executor (source) not WASI
  • Executor.shutdown(wait=True, *, cancel_futures=False)
Clean-up the resources associated with the Executor.

It is safe to call this method several times. Otherwise, no other
methods can be called after this one.

Args:
    wait: If True then shutdown will not return until all running
        futures have finished executing and the resources used by
        the executor have been reclaimed.
    cancel_futures: If True then shutdown will cancel all pending
        futures. Futures that are completed or running will not be
        cancelled.
Changed in 3.9
  • 3.9: Added the cancel_futures parameter.
0 Examples
No examples for concurrent.futures/Executor.shutdown.
See Also
No see-alsos for concurrent.futures/Executor.shutdown
0 Notes
No notes for Executor.shutdown