René's URL Explorer Experiment


Title: [RFC] Asyncio Support by fantix · Pull Request #11 · MagicStack/contextvars · GitHub

Open Graph Title: [RFC] Asyncio Support by fantix · Pull Request #11 · MagicStack/contextvars

X Title: [RFC] Asyncio Support by fantix · Pull Request #11 · MagicStack/contextvars

Description: This is a proposal to fix #2 in Approach 2, with patching code to achieve context copying on task creation, please see separate commits in this PR. Regarding context copying/inheriting: After impo...

Open Graph Description: This is a proposal to fix #2 in Approach 2, with patching code to achieve context copying on task creation, please see separate commits in this PR. Regarding context copying/inheriting: After impo...

X Description: This is a proposal to fix #2 in Approach 2, with patching code to achieve context copying on task creation, please see separate commits in this PR. Regarding context copying/inheriting: After impo...

Opengraph URL: https://github.com/MagicStack/contextvars/pull/11

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:cc3c59eb-b3dc-595c-bdf7-e0561d7781c2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD974:71086:C60225:10B9F96:696EAE00
html-safe-nonceb266d539ad153e29ffb4f6d3a7fac5b961624015867360f01e65cb09e72e7bcd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTc0OjcxMDg2OkM2MDIyNToxMEI5Rjk2OjY5NkVBRTAwIiwidmlzaXRvcl9pZCI6Ijc0MTAzNDU1NTEzMjE4MDQyODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb75efd189775536c55b9b91ec4810edce3e41420e8672e720c78ca3b859be453
hovercard-subject-tagpull_request:211715642
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/MagicStack/contextvars/11/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/6aade5dda615cf207b20135ff7811c11ecc5a92684f3e401459565c5e9db9371/MagicStack/contextvars/pull/11
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6aade5dda615cf207b20135ff7811c11ecc5a92684f3e401459565c5e9db9371/MagicStack/contextvars/pull/11
og:image:altThis is a proposal to fix #2 in Approach 2, with patching code to achieve context copying on task creation, please see separate commits in this PR. Regarding context copying/inheriting: After impo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefantix
hostnamegithub.com
expected-hostnamegithub.com
Noneb278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee
turbo-cache-controlno-preview
go-importgithub.com/MagicStack/contextvars git https://github.com/MagicStack/contextvars.git
octolytics-dimension-user_id14324950
octolytics-dimension-user_loginMagicStack
octolytics-dimension-repository_id126106595
octolytics-dimension-repository_nwoMagicStack/contextvars
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id126106595
octolytics-dimension-repository_network_root_nwoMagicStack/contextvars
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
release39aed5006635ab6f45e6b77d23e73b08a00272a3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FMagicStack%2Fcontextvars%2Fpull%2F11
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FMagicStack%2Fcontextvars%2Fpull%2F11
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=MagicStack%2Fcontextvars
Reloadhttps://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11
Reloadhttps://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11
Reloadhttps://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11
MagicStack https://patch-diff.githubusercontent.com/MagicStack
contextvarshttps://patch-diff.githubusercontent.com/MagicStack/contextvars
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FMagicStack%2Fcontextvars
Fork 9 https://patch-diff.githubusercontent.com/login?return_to=%2FMagicStack%2Fcontextvars
Star 89 https://patch-diff.githubusercontent.com/login?return_to=%2FMagicStack%2Fcontextvars
Code https://patch-diff.githubusercontent.com/MagicStack/contextvars
Issues 5 https://patch-diff.githubusercontent.com/MagicStack/contextvars/issues
Pull requests 1 https://patch-diff.githubusercontent.com/MagicStack/contextvars/pulls
Actions https://patch-diff.githubusercontent.com/MagicStack/contextvars/actions
Projects 0 https://patch-diff.githubusercontent.com/MagicStack/contextvars/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/MagicStack/contextvars/security
Please reload this pagehttps://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11
Insights https://patch-diff.githubusercontent.com/MagicStack/contextvars/pulse
Code https://patch-diff.githubusercontent.com/MagicStack/contextvars
Issues https://patch-diff.githubusercontent.com/MagicStack/contextvars/issues
Pull requests https://patch-diff.githubusercontent.com/MagicStack/contextvars/pulls
Actions https://patch-diff.githubusercontent.com/MagicStack/contextvars/actions
Projects https://patch-diff.githubusercontent.com/MagicStack/contextvars/projects
Security https://patch-diff.githubusercontent.com/MagicStack/contextvars/security
Insights https://patch-diff.githubusercontent.com/MagicStack/contextvars/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2FMagicStack%2Fcontextvars%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2FMagicStack%2Fcontextvars%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11#issue-comment-box
fantixhttps://patch-diff.githubusercontent.com/fantix
MagicStack:masterhttps://patch-diff.githubusercontent.com/MagicStack/contextvars/tree/master
fantix:masterhttps://patch-diff.githubusercontent.com/fantix/contextvars/tree/master
[RFC] Asyncio Support https://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11#top
fantixhttps://patch-diff.githubusercontent.com/fantix
MagicStack:masterhttps://patch-diff.githubusercontent.com/MagicStack/contextvars/tree/master
fantix:masterhttps://patch-diff.githubusercontent.com/fantix/contextvars/tree/master
Conversation 4 https://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11
Commits 2 https://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11/commits
Checks 0 https://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11/checks
Files changed 2 https://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11/files
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/fantix
fantixhttps://patch-diff.githubusercontent.com/fantix
Aug 29, 2018https://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11#issue-355111863
Please reload this pagehttps://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11
#2https://github.com/MagicStack/contextvars/issues/2
herehttps://github.com/fantix/aiocontextvars/blob/v0.1.2/aiocontextvars/inherit.py
#2https://github.com/MagicStack/contextvars/issues/2
Please reload this pagehttps://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11
https://patch-diff.githubusercontent.com/fantix
Use task as state whenever possible.https://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11/commits/278ad10b891ac93790923044ac5d7faa94aeda9c
278ad10https://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11/commits/278ad10b891ac93790923044ac5d7faa94aeda9c
https://patch-diff.githubusercontent.com/fantix
fantixhttps://patch-diff.githubusercontent.com/fantix
Sep 4, 2018 https://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11#ref-issue-352497723
"Another operation is in progress" error when using transactions and asyncio.gather python-gino/gino#313 https://patch-diff.githubusercontent.com/python-gino/gino/issues/313
https://patch-diff.githubusercontent.com/wwwjfy
wwwjfyhttps://patch-diff.githubusercontent.com/wwwjfy
Sep 9, 2018 https://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11#ref-pullrequest-358356269
Update aiocontextvars to 0.2.0 python-gino/gino#333 https://patch-diff.githubusercontent.com/python-gino/gino/pull/333
https://patch-diff.githubusercontent.com/fantix
Patch loops to copy context on task creation.https://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11/commits/ab5321546ca3917399c88ea00d14997b1fbe8521
ab53215https://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11/commits/ab5321546ca3917399c88ea00d14997b1fbe8521
https://patch-diff.githubusercontent.com/fantix
fantixhttps://patch-diff.githubusercontent.com/fantix
force-pushedhttps://patch-diff.githubusercontent.com/MagicStack/contextvars/compare/b1dca79872382a53ad3afe048eaf4646b5057a85..ab5321546ca3917399c88ea00d14997b1fbe8521
b1dca79https://patch-diff.githubusercontent.com/MagicStack/contextvars/commit/b1dca79872382a53ad3afe048eaf4646b5057a85
ab53215https://patch-diff.githubusercontent.com/MagicStack/contextvars/commit/ab5321546ca3917399c88ea00d14997b1fbe8521
Compare https://patch-diff.githubusercontent.com/MagicStack/contextvars/compare/b1dca79872382a53ad3afe048eaf4646b5057a85..ab5321546ca3917399c88ea00d14997b1fbe8521
September 11, 2018 08:32https://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11#event-1837914832
https://patch-diff.githubusercontent.com/whardier
whardierhttps://patch-diff.githubusercontent.com/whardier
Apr 29, 2022https://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11#issuecomment-1112765894
Please reload this pagehttps://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11
https://patch-diff.githubusercontent.com/fantix
fantixhttps://patch-diff.githubusercontent.com/fantix
Apr 29, 2022https://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11#issuecomment-1113421980
Please reload this pagehttps://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11
https://patch-diff.githubusercontent.com/whardier
whardierhttps://patch-diff.githubusercontent.com/whardier
Apr 29, 2022https://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11#issuecomment-1113424860
Please reload this pagehttps://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11
https://patch-diff.githubusercontent.com/fantix
fantixhttps://patch-diff.githubusercontent.com/fantix
Apr 29, 2022https://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11#issuecomment-1113431793
similar hackshttps://github.com/python-gino/gino/blob/6218b902cc8a31198f1a0b42d67e689140b68c8b/src/gino/aiocontextvars.py
Please reload this pagehttps://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FMagicStack%2Fcontextvars%2Fpull%2F11
asyncio support https://github.com/MagicStack/contextvars/issues/2
Please reload this pagehttps://patch-diff.githubusercontent.com/MagicStack/contextvars/pull/11
https://patch-diff.githubusercontent.com/fantix
https://patch-diff.githubusercontent.com/whardier
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.