Skip to content
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

gen: Use the asyncio task runner for native coroutines #2213

Merged
merged 2 commits into from
Dec 10, 2017

Conversation

bdarnell
Copy link
Member

@bdarnell bdarnell commented Dec 9, 2017

Coroutines using await/yield from are more tightly coupled than coroutines using yield; they must all share the same coroutine. The asyncio task runner publishes some non-local state that common libraries rely on, so these libraries could not be used in native coroutines that were started by tornado (aio-libs/aiohttp#877). Address this by using the asyncio task runner everywhere.

@bdarnell bdarnell force-pushed the asyncio-task-runner branch from 06d5b0c to 91a2e3b Compare December 9, 2017 21:17
@bdarnell bdarnell merged commit ccd4930 into tornadoweb:master Dec 10, 2017
@bdarnell bdarnell deleted the asyncio-task-runner branch December 10, 2017 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant