Skip to content

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

Open
@asvetlov

Description

@asvetlov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions