diff options
author | Kyle Stanley <aeros167@gmail.com> | 2020-02-02 12:49:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-02 12:49:00 (GMT) |
commit | 339fd46cb764277cbbdc3e78dcc5b45b156bb6ae (patch) | |
tree | 2366d3abf217d3017a50e2b024d67be731a49347 /Doc/whatsnew | |
parent | be8147bdc6111a225ec284a4514277304726c3d0 (diff) | |
download | cpython-339fd46cb764277cbbdc3e78dcc5b45b156bb6ae.zip cpython-339fd46cb764277cbbdc3e78dcc5b45b156bb6ae.tar.gz cpython-339fd46cb764277cbbdc3e78dcc5b45b156bb6ae.tar.bz2 |
bpo-39349: Add *cancel_futures* to Executor.shutdown() (GH-18057)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.9.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst index ee37b5a..931f8bf 100644 --- a/Doc/whatsnew/3.9.rst +++ b/Doc/whatsnew/3.9.rst @@ -146,6 +146,15 @@ that schedules a shutdown for the default executor that waits on the Added :class:`asyncio.PidfdChildWatcher`, a Linux-specific child watcher implementation that polls process file descriptors. (:issue:`38692`) +concurrent.futures +------------------ + +Added a new *cancel_futures* parameter to +:meth:`concurrent.futures.Executor.shutdown` that cancels all pending futures +which have not started running, instead of waiting for them to complete before +shutting down the executor. +(Contributed by Kyle Stanley in :issue:`39349`.) + curses ------ |