-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Accept async context managers for cleanup contexts (#11681) #11704
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
Open
MannXo
wants to merge
22
commits into
aio-libs:master
Choose a base branch
from
MannXo:feature/accept-async-context-manager-for-cleanup-context
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
7eaad2f
Accept async context managers for cleanup contexts (#11681)\n\nAdapt …
MannXo 795bd0a
Add contributor: Parman Mohammadalizadeh
MannXo 91e83fe
fixed typing and test coverage issues
MannXo 4c6781d
- moved tests to test_web_app.
MannXo a3488da
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] dd1fe24
resolved mypy issues
MannXo 32a64ba
- fixed doc spelling
MannXo 57802d7
fixed linter
MannXo 6bd76a2
ignore coverage for adapter assertion in
MannXo b830b7e
removed comment
MannXo fba2864
removed unused type ignore
MannXo e38685c
- updated change doc
MannXo 8186737
Removes _AsyncCMAsIterator and simplifies cleanup context handling
MannXo 8291fa9
improved coverage
MannXo b11f808
simplified the _on_startup
MannXo 8b959a5
Merge branch 'master' into feature/accept-async-context-manager-for-c…
MannXo ff8b95a
removed redundant type_checking condition
MannXo 56eb622
added tests to improve coverage
MannXo da51359
Accept async context manager in cleanup context; add tests; repair re…
MannXo af15644
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 160ab95
Revert "Accept async context manager in cleanup context; add tests; r…
MannXo 5f5dd32
removed unused type ignores
MannXo 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| Started accepting :term:`asynchronous context managers <asynchronous context manager>` for cleanup contexts. | ||
| Legacy single-yield :term:`asynchronous generator` cleanup contexts continue to be | ||
| supported; async context managers are adapted internally so they are | ||
| entered at startup and exited during cleanup. | ||
|
|
||
| -- by :user:`MannXo`. | ||
Dreamsorcerer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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
Oops, something went wrong.
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.