Add a timeout parameter to Executor.shutdown() — issue #72165
Discussions on Python.org
Add a timeout parameter to Executor.shutdown() — issue #72165
I’d like to discuss the proposed feature in CPython issue #72165: adding an optional timeout parameter to concurrent.futures.Executor.shutdown(). Currently, when Executor.shutdown() is called with wait=True (the default), it waits for all currently running futures to complete. There is no way for the caller to put an upper bound on how long it waits. The proposed API is: executor.shutdown(wait=True, *, cancel_futures=False, timeout=None) When timeout is None, the existing behavior would rema...
0 comments
No comments yet.