Skip to content

AsyncIO-Docs: Task.cancel return value not documented #132354

@ml-physec

Description

@ml-physec

Documentation

The documentation of asyncio.Task.cancel does not mention that there is a return value of True/False. The return value functions like the one of asyncio.Future.cancel, where False indicates it was already done or cancelled.

The only reference is that Tasks are "Future-like objects". Other Functions state the return value either as first, or second paragraph.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions