Skip to content
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

Asyncgen closing fix #14

Merged
merged 2 commits into from
Jul 14, 2018
Merged

Asyncgen closing fix #14

merged 2 commits into from
Jul 14, 2018

Conversation

goodboy
Copy link
Owner

@goodboy goodboy commented Jul 14, 2018

Fix to solve the final cancellation bug to do with invoking (remote) async generators.

Thanks to @njsmith and async_generator.aclosing() this properly closes them on error or cancellation.
See python-trio/trio#455 for discussion.

Tyler Goodlet added 2 commits July 13, 2018 22:17
Take @njsmith's advice and properly close actor invoked async generators
using `async_generator.aclosing()` instead of hacking it (as previous)
with a shielded cancel scope.
@goodboy goodboy merged commit f636bfd into master Jul 14, 2018
@goodboy goodboy deleted the asyncgen_closing_fix branch July 21, 2020 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant