-
Notifications
You must be signed in to change notification settings - Fork 179
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
RuntimeError: async generator ignored GeneratorExit #394
Comments
The normal way to exit is simply to use break: for result in subscription:
should_break = do_something()
if should_break:
break but the same error appears on version 3.4.0, this is a bug. I've made the PR #395 which should solve this. |
It should be fixed in the pre-release v3.5.0b3 |
I tested the pre-release and it seems to have fixed the bug. Thanks a lot! |
It is possible to trigger unsubscription indirectly (not inside the loop)? |
@NikitaMishin It should be possible in sync mode by calling |
Hi,
When I run this code:
I get an error in the console:
How can I break the loop without having this error printed out?
Thanks!
System info:
The text was updated successfully, but these errors were encountered: