Title: Add a section about async generators in `asyncio` docs · Issue #100108 · python/cpython · GitHub
Open Graph Title: Add a section about async generators in `asyncio` docs · Issue #100108 · python/cpython
X Title: Add a section about async generators in `asyncio` docs · Issue #100108 · python/cpython
Description: 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...
Open Graph Description: 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: R...
X Description: 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: R...
Opengraph URL: https://github.com/python/cpython/issues/100108
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add a section about async generators in `asyncio` docs","articleBody":"Currently async generators have little documentation, we should add a **best practices** section for this in the docs to avoid common pitfalls. \r\nSome of the things to be documented off top of my head:\r\n- Recommend to manually close the generator instead of relying on the gc. (Most important)\r\n- Avoid iterating and closing the same generator concurrently.\r\n- Only create a generator when a loop is **already** running. \r\n\r\nIf anyone from the docs group is interested, that would be much appreciated. \n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-141885\n* gh-146252\n* gh-146253\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/kumaraditya303","@type":"Person","name":"kumaraditya303"},"datePublished":"2022-12-08T11:54:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/100108/cpython/issues/100108"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:023d0e7e-92c9-5d84-bfc1-84c1a34de1e6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E37C:18EA1F:FBB15C:1547926:6A507467 |
| html-safe-nonce | 3304306ac12d567357b49ff6fa10af3a4f5e9137f2c018f5e64d8eef49ca7fea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzdDOjE4RUExRjpGQkIxNUM6MTU0NzkyNjo2QTUwNzQ2NyIsInZpc2l0b3JfaWQiOiI4NDI0Nzc2MDg0NTkyMDMwODIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e9422816580e8f18279cd6fad20a0a8ee8df531e72d9547a455e5d1c56e8004e |
| hovercard-subject-tag | issue:1484474399 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/100108/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7880106a38227f88c43ae573c5ca3259ec9a675db9d3e5edcb2de0dbe0556262/python/cpython/issues/100108 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7880106a38227f88c43ae573c5ca3259ec9a675db9d3e5edcb2de0dbe0556262/python/cpython/issues/100108 |
| og:image:alt | 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: R... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kumaraditya303 |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width