Skip to content

asyncio.wait_for() docs still say a coroutine is wrapped in a Task #155894

Description

@deadlovelll

Documentation

Since 3.12 asyncio.wait_for() no longer wraps a coroutine in a Task for positive timeouts, but the docs still say it does

Where the docs are misleading:

Doc/library/asyncio-task.rst:846 — "If fut is a coroutine it is automatically scheduled as a Task."
Lib/asyncio/tasks.py:443 — "Coroutine will be wrapped in Task."

:846-855 also refer to "the task" that does not exist, and there is no versionchanged:: 3.12.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status
    Todo
    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions