-
Notifications
You must be signed in to change notification settings - Fork 170
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
unawaited_futures lint is too aggressive - reports Future.whenComplete #338
Comments
does
fix the linter warning? It was clear when this lint was introduced that there are always cases where one doesn't want to await and therefore false positives can't be avoided. |
oh is the problem that whenComplete returns a Future? That's one Future that should probably be ignorable... (generally, exceptions from that are like exceptions from a |
Not sure. I didn't see where exactly you got the linter warning. |
I have too many open bugs right now :( |
Since this was just linked to, I'll point out that the warning here is reasonable. Using |
I think it's fairly clear that this isn't likely to be changed, so I'm going to close it. |
Consider the following code:
This causes:
...but doing what the lint suggests would change the semantics of the code and not be correct.
The text was updated successfully, but these errors were encountered: