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

Add eager_tasks parameter to asyncio Runner and run() #128289

Open
asvetlov opened this issue Dec 27, 2024 · 0 comments
Open

Add eager_tasks parameter to asyncio Runner and run() #128289

asvetlov opened this issue Dec 27, 2024 · 0 comments
Labels
stdlib Python modules in the Lib dir topic-asyncio type-feature A feature request or enhancement

Comments

@asvetlov
Copy link
Contributor

asvetlov commented Dec 27, 2024

Feature or enhancement

Proposal:

We have an agreement that eager tasks should become defaults in asyncio eventually.

This issue implements the first step: it adds opt-in eager_tasks argument to run() function and Runner constructor.
Later we'll deprecate False value and enforce users to switch to eager tasks in their code.

See the linked discussion for details.

Has this already been discussed elsewhere?

I have already discussed this feature proposal on Discourse

Links to previous discussion of this feature:

https://discuss.python.org/t/make-asyncio-eager-task-factory-default/75164/10

Linked PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir topic-asyncio type-feature A feature request or enhancement
Projects
Status: Todo
Development

No branches or pull requests

2 participants