-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
bpo-39349: Add *cancel_futures* to Executor.shutdown() #18057
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
pitrou
merged 16 commits into
python:master
from
aeros:bpo39349-add-cancel_futures-to-Executor.shutdown
Feb 2, 2020
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
f736292
Add *cancel_futures* to Executor.shutdown()
aeros 6267950
📜🤖 Added by blurb_it.
blurb-it[bot] b047099
Make *cancel_futures* keyword-only
aeros f9b6b33
Add comments to explain *cancel_futures* in TPE
aeros 5804e41
Merge branch 'bpo39349-add-cancel_futures-to-Executor.shutdown' of ht…
aeros 25376d7
Improve docs and grammar fix
aeros 9a168e4
Address review feedback
aeros 7bd8134
Add kw-only asterisk to executor.shutdown() docs
aeros 8b08b2f
Update code comments
aeros f706c5f
Improve future cancellation for PPE
aeros bdbc8e3
Fix race condition and improve tests
aeros 41baf76
Add TPE test for interpreter exit
aeros bee0e68
Fix whitespace
aeros 52c9087
Merge branch 'master' into bpo39349-add-cancel_futures-to-Executor.sh…
aeros bf75a3e
Set _cancel_pending_futures before _shutdown_thread
aeros d756264
Set max_workers to 3 in test_cancel_futures
aeros File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
Misc/NEWS.d/next/Library/2020-01-19-04-12-34.bpo-39349.7CV-LC.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
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. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.