René's URL Explorer Experiment


Title: Closing a subscription leaves a distinct source iterator open · Issue #283 · graphql-python/graphql-core · GitHub

Open Graph Title: Closing a subscription leaves a distinct source iterator open · Issue #283 · graphql-python/graphql-core

X Title: Closing a subscription leaves a distinct source iterator open · Issue #283 · graphql-python/graphql-core

Description: On current main (d913a61), map_async_iterable registers cleanup on the async iterable object, while async iteration consumes the object returned by its aiter method. A valid wrapper can return a separate async generator. Closing the mapp...

Open Graph Description: On current main (d913a61), map_async_iterable registers cleanup on the async iterable object, while async iteration consumes the object returned by its aiter method. A valid wrapper can return a se...

X Description: On current main (d913a61), map_async_iterable registers cleanup on the async iterable object, while async iteration consumes the object returned by its aiter method. A valid wrapper can return a se...

Opengraph URL: https://github.com/graphql-python/graphql-core/issues/283

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Closing a subscription leaves a distinct source iterator open","articleBody":"On current main (d913a6106ffe2e459b91dce97f225d15723aa81d), map_async_iterable registers cleanup on the async iterable object, while async iteration consumes the object returned by its __aiter__ method. A valid wrapper can return a separate async generator. Closing the mapped stream then leaves that generator open, so its finally block does not run. The same behavior is reachable through subscribe().\n\nMinimal reproducer:\n\n```python\nimport asyncio\nfrom graphql.execution.async_iterables import map_async_iterable\n\nasync def main():\n    closed = False\n\n    async def events():\n        nonlocal closed\n        try:\n            yield 1\n            yield 2\n        finally:\n            closed = True\n\n    iterator = events()\n\n    class Events:\n        def __aiter__(self):\n            return iterator\n\n    async def identity(value):\n        return value\n\n    mapped = map_async_iterable(Events(), identity)\n    try:\n        assert await anext(mapped) == 1\n        await mapped.aclose()\n        assert closed  # Fails: the source iterator is still open.\n    finally:\n        await iterator.aclose()\n\nasyncio.run(main())\n```\n\nExpected: closing the mapped stream awaits cleanup of the iterator actually supplying events. Actual: cleanup is attempted on the wrapper; the generator remains open and can yield the second event.\n\nA narrow local fix acquires the iterator before registering cleanup (aclosing(aiter(iterable))). Four new regressions fail on the base and pass with that change, including one through the public subscription API. The full local suites pass on Python 3.10 and 3.14. This differs from the broader AnyIO/cancellation work in #165 and #166; it does not change pending-next cancellation behavior.\n\nDoes closing the consumed iterator match the intended port contract? I can link the focused patch after discussion, following the PR template. AI assistance was used to investigate and validate this report.","author":{"url":"https://github.com/AryanRG","@type":"Person","name":"AryanRG"},"datePublished":"2026-10-17T04:08:35Z","url":"https://github.com/graphql-python/graphql-core/issues/283"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c31fdaee-6fee-fe02-3c23-887324c034d7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDF68:2EBAD:826B1:ADED4:6B001908
html-safe-nonce6d6e9fb47f5d9461ca6485c847a2239c1f8146ba3d42b64b62a8360e2fdbd511
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjY4OjJFQkFEOjgyNkIxOkFERUQ0OjZCMDAxOTA4IiwidmlzaXRvcl9pZCI6Ijg1MTU2OTYxMDAyNDAzMjUyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacae41894ce1eb547f87b157065adf0f139eb8413705fabf957fd30cb0e1050bf4
hovercard-subject-tagissue:5894694626
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/graphql-python/graphql-core/283/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f40e512d7d7afe02c8bfaae3521dc26c666c195ebe62de36cec8c9582014462c/graphql-python/graphql-core/issues/283
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f40e512d7d7afe02c8bfaae3521dc26c666c195ebe62de36cec8c9582014462c/graphql-python/graphql-core/issues/283
og:image:altOn current main (d913a61), map_async_iterable registers cleanup on the async iterable object, while async iteration consumes the object returned by its aiter method. A valid wrapper can return a se...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAryanRG
hostnamegithub.com
expected-hostnamegithub.com
Nonea2dd2291b1b13cc9c06f27ec92fa3dbaf34116fc24c9347b8539db61884c59f4
turbo-cache-controlno-preview
go-importgithub.com/graphql-python/graphql-core git https://github.com/graphql-python/graphql-core.git
octolytics-dimension-user_id15002022
octolytics-dimension-user_logingraphql-python
octolytics-dimension-repository_id143207933
octolytics-dimension-repository_nwographql-python/graphql-core
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id143207933
octolytics-dimension-repository_network_root_nwographql-python/graphql-core
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release70121d4e855ee0bb7b75cf15d061d91f8863c0f8
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/graphql-python/graphql-core/issues/283#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-python%2Fgraphql-core%2Fissues%2F283
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-python%2Fgraphql-core%2Fissues%2F283
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=graphql-python%2Fgraphql-core
Reloadhttps://github.com/graphql-python/graphql-core/issues/283
Reloadhttps://github.com/graphql-python/graphql-core/issues/283
Reloadhttps://github.com/graphql-python/graphql-core/issues/283
graphql-pythonhttps://github.com/graphql-python
graphql-corehttps://github.com/graphql-python/graphql-core
Codehttps://github.com/graphql-python/graphql-core
Issues24 (24)https://github.com/graphql-python/graphql-core/issues
Pull requests3 (3)https://github.com/graphql-python/graphql-core/pulls
Actionshttps://github.com/graphql-python/graphql-core/actions
Projectshttps://github.com/graphql-python/graphql-core/projects
Security and quality3 (3)https://github.com/graphql-python/graphql-core/security
Insightshttps://github.com/graphql-python/graphql-core/insights
https://github.com/graphql-python/graphql-core
New issuehttps://github.com/login?return_to=https://github.com/graphql-python/graphql-core/issues/283
New issuehttps://github.com/login?return_to=https://github.com/graphql-python/graphql-core/issues/283
#286https://github.com/graphql-python/graphql-core/pull/286
Closing a subscription leaves a distinct source iterator openhttps://github.com/graphql-python/graphql-core/issues/283#top
#286https://github.com/graphql-python/graphql-core/pull/286
https://github.com/AryanRG
AryanRGhttps://github.com/AryanRG
on Oct 17, 2026https://github.com/graphql-python/graphql-core/issues/283#issue-5894694626
d913a61https://github.com/graphql-python/graphql-core/commit/d913a6106ffe2e459b91dce97f225d15723aa81d
#165https://github.com/graphql-python/graphql-core/pull/165
#166https://github.com/graphql-python/graphql-core/issues/166
https://github.com/Cito
Citohttps://github.com/Cito
on Oct 19, 2026https://github.com/graphql-python/graphql-core/issues/283#issuecomment-6266771917
@AryanRGhttps://github.com/AryanRG
https://github.com/AryanRG
AryanRGhttps://github.com/AryanRG
on Oct 19, 2026https://github.com/graphql-python/graphql-core/issues/283#issuecomment-6267020320
@Citohttps://github.com/Cito
#286https://github.com/graphql-python/graphql-core/pull/286
Citohttps://github.com/Cito
completedhttps://github.com/graphql-python/graphql-core/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#286https://github.com/graphql-python/graphql-core/pull/286
on Oct 19, 2026https://github.com/graphql-python/graphql-core/issues/283#event-33644649546
Sign up for freehttps://github.com/signup?return_to=https://github.com/graphql-python/graphql-core/issues/283
Sign in to commenthttps://github.com/login?return_to=https://github.com/graphql-python/graphql-core/issues/283
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.