Skip to content

New asyncio rule: ban asyncio.shield #320

Open
@jakkdl

Description

https://docs.python.org/3/library/asyncio-task.html#asyncio.shield has the double footgun of #319 and having to reroute the shielded task to a different context where it can be properly monitored for completion of errors. If you're already doing the latter, you might as well send the coroutine directly and you will have fewer problems handling the Task/Future.
Inspired by @graingert

Implementation would be trivial, most of the work would be writing documentation that explains the issue and how to resolve it.

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpostponedLow priority, blocked, or similar.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions