Skip to content

unawaited_futures not working in forEach #57102

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

Closed
mgenware opened this issue Jun 28, 2024 · 1 comment
Closed

unawaited_futures not working in forEach #57102

mgenware opened this issue Jun 28, 2024 · 1 comment
Labels
devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. linter-false-negative P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@mgenware
Copy link

Describe the issue

Try calling an async func in forEach:

image

Expected behavior

  • If forEach supports async callbacks, if should report unawaited_futures
  • If not, it should warn that the async function param might not be awaited

Additional context

Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale
en-US)

@srawlins
Copy link
Member

Thanks for the report! This is a case of #57653

@srawlins srawlins added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) P3 A lower priority bug or feature request linter-false-negative labels Jun 28, 2024
@devoncarew devoncarew transferred this issue from dart-archive/linter Nov 15, 2024
@devoncarew devoncarew added devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. labels Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. linter-false-negative P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants