-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-34037: Fix test_asyncio failure and add loop.shutdown_default_executor() #15735
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
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
6ed9465
Add flag BaseEventLoop._executor_shutdown_called
aeros 8608e97
Add abstract method for loop.shutdown_default_executor()
aeros 7f39c4a
Add BaseEventLoop method shutdown_default_executor()
aeros 09a9458
Remove whitespace
aeros c12cf4f
Add BaseEventLoop internal method _check_executor_shutdown()
aeros afa09a5
Adjust docstring for abstract method loop.shutdown_default_executor
aeros 3303753
Rename method _check_executor_shutdown() to _check_default_executor()
aeros b877e76
Add default executor check to loop.run_in_executor()
aeros 1a29d83
Implement loop.shutdown_default_executors() in asyncio.run()
aeros 6bde87c
Remove empty line
aeros 1e4a858
Shorten `loop.shutdown_default_executor()` docstring
aeros 8a4a285
Add _shutdown_default_executor() to reduce duplicate code
aeros f6280f7
Update documentation
aeros 69c7244
Convert `loop.shutdown_default_executor` into a coroutine
aeros 7608920
Add internal method `_do_shutdown()` and fix flag in `shutdown_defaul…
aeros 93ddce2
Update docstrings to reflect changes to `loop.shutdown_default_executor`
aeros 895cad0
Misc fixes for `loop._do_shutdown()`
aeros 94e7af4
Fix whitespace in `asyncio-eventloop.rst`
aeros 7e4980c
Update `asyncio.run()` for `loop.shutdown_default_executor()` corouti…
aeros 626117d
Fix `loop.shutdown_default_executor()` and whitespace
aeros 5340a5c
Delete accidentally committed temp file
aeros 260cace
📜🤖 Added by blurb_it.
blurb-it[bot] d2bc6d0
Adjust wording in Misc/NEWS entry
aeros 8820584
Adjust wording in doc for loop.shutdown_default_executor()
aeros 7fe0fb1
Merge branch 'bpo-34037' of https://github.com/aeros167/cpython into …
aeros dbc08ae
Fix doc for loop.shutdown_default_executor()
aeros fbae3ec
Add "Patch by" to news entry
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/2019-09-11-21-38-41.bpo-34037.LIAS_3.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 @@ | ||
For :mod:`asyncio`, add a new coroutine :meth:`loop.shutdown_default_executor`. | ||
The new coroutine provides an API to schedule an executor shutdown that waits | ||
on the threadpool to finish closing. Also, :func:`asyncio.run` has been updated | ||
to utilize the new coroutine. Patch by Kyle Stanley. |
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.