-
-
Notifications
You must be signed in to change notification settings - Fork 357
add @as_safe_channel
#3197
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
add @as_safe_channel
#3197
Changes from 31 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
317cb1c
Update _channel.py
Zac-HD 1a7714e
Merge remote-tracking branch 'zachd/async-generator-decorator' into b…
jakkdl b0b8b02
add tests, and some types
jakkdl 8584cff
Fix race condition
A5rocks 274755f
fix race condition + exception eating, make sure we always clean up, …
jakkdl 428dd4b
Merge branch 'main' into background_with_channel
jakkdl 7542973
restore prev default, fix codecov
jakkdl 86d3b0f
Update src/trio/_channel.py
jakkdl 2d11ea2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a5734f6
clean up comments, add some others, and remove unnecessary ait/agen d…
jakkdl 0b461d2
add newsfragment, docs. building docs is failing locally on AbstractA…
jakkdl b86eb54
fix minor docstring errors
jakkdl 7936fd2
Merge branch 'main' into background_with_channel
jakkdl 6e71d4e
Merge remote-tracking branch 'origin/main' into background_with_channel
jakkdl 1670674
docs&newsfragment fixes after review, remove aclosing
jakkdl 7acf3a0
Fix sphinx type hint resolution
TeamSpen210 69a95dc
Merge remote-tracking branch 'origin/main' into background_with_channel
jakkdl efe2d00
fix coverage. Would be great to have tox+coverage now... :eyes:
jakkdl f78f641
fix interleaved execution on non-0 buffer size
jakkdl 5bfb0c5
specify strict_exception_groups, clarify drop-in replacement status
jakkdl 54800e2
Apply suggestions from code review
jakkdl 0e34b85
codecov, fix tests after functionality change
jakkdl 1b8ce0a
codecov
jakkdl ec61a1f
Merge branch 'main' into background_with_channel
jakkdl 9f8a2ab
:100: plx
jakkdl bfa981c
okay now actually 100% coverage
jakkdl 26ed1c6
do everything but unwrapping the exception from inside the group
jakkdl 72ac535
Merge remote-tracking branch 'origin/main' into background_with_channel
jakkdl e7556b4
unwrap exceptiongroup, add test
jakkdl da8a415
.
jakkdl 0030ac8
rename background_with_channel -> as_safe_channel, rename _raise, don…
jakkdl e9596a2
fixes after review
jakkdl b076e6d
multi-cancel test.. which should perhaps be fixed
jakkdl ba9c1d2
Merge branch 'main' into background_with_channel
jakkdl 58e03c9
handle multiple cancellations
jakkdl 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add :func:`@trio.as_safe_channel <trio.as_safe_channel>`, a wrapper that can be used to make async generators safe. This will be the suggested fix for `ASYNC900 <https://flake8-async.readthedocs.io/en/latest/rules.html#async900>`_. | ||
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.
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.