Skip to content

[unawaited_futures] does not complain for async function that return void #59537

Closed
@stephane-archer

Description

@stephane-archer

if my function is :
Future<void> _foo() async {
the linter will complain if I don't await _foo()
but if my function is:
void _foo() async {
no complain.
I know I'm not "unawait a future" here but what I want is to await all async functions even if they return void over Future<void>

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestdevexp-linterIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions