Skip to content

Feature request: warn on unused result #17282

@krisselden

Description

@krisselden

It can be easy to forget an await for a method returning Promise<void> and have your code appear to work.

I would be nice to have something like must_use in Rust or the __attribute__((warn_unused_result)) in C or @warn_unused_result in Swift.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions