Skip to content

Add 'avoid_void_async' lint #1977

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Feb 22, 2023
Merged

Conversation

annagrin
Copy link
Contributor

@annagrin annagrin commented Feb 21, 2023

The lint forces us to mark async void functions as returning Future<void>, which in combination with unawaited_futures rule will make sure that we are either awaiting on them or marking them as unawaited intentionally.

@annagrin annagrin requested a review from elliette February 22, 2023 00:49
@annagrin annagrin merged commit 3774cf8 into dart-lang:master Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants