Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add a section about async generators in asyncio docs #100108

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
kumaraditya303 opened this issue Dec 8, 2022 · 0 comments
Open

Add a section about async generators in asyncio docs #100108

kumaraditya303 opened this issue Dec 8, 2022 · 0 comments
Labels
docs Documentation in the Doc dir topic-asyncio

Comments

@kumaraditya303
Copy link
Contributor

Currently async generators have little documentation, we should add a best practices section for this in the docs to avoid common pitfalls.
Some of the things to be documented off top of my head:

  • Recommend to manually close the generator instead of relying on the gc. (Most important)
  • Avoid iterating and closing the same generator concurrently.
  • Only create a generator when a loop is already running.

If anyone from the docs group is interested, that would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir topic-asyncio
Projects
Status: Todo
Development

No branches or pull requests

1 participant