Skip to content

discarded_futures : Unwaited return for when Future is expected #59331

Closed
@bsz0206

Description

@bsz0206

Unwaited does work only on void returns. We are forced to ignore, which is not nice:

FutureBuilder(
// ignore: discarded_futures
future: asyncCall(),

Unwaited does work only on void returns:
FutureBuilder(
future: unawaited(asyncCall()),,

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-linterIssues with the analyzer's support for the linter packagetype-questionA question about expected behavior or functionality

    Type

    No type

    Projects

    Status

    Triage backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions