-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Review unawaited
to accept FutureOr
#59877
Comments
As a reference, this is coming from working on a fix for #59331. |
The other possible solution is to change |
I agree that would be better, yes. That could also be a start for solving #59105 |
In that case I'd also like to request that we reviewew the docs for I see a mention to |
discarded_futures
shows unawaited as fix for FutureOr
unawaited
to accept FutureOr
We won't make There are no extension methods on In general, don't work with (I have no plan to mention |
About @lrhn if you disagree that this should be changed this way, maybe we could add an |
I've commented on the CL. Not saying it's not an improvement, it's just not far-reaching enough for me :) I don't think I'd want to add an |
The
unawaited
function is suggested as a fix fordiscarded_futures
and currently takes onlyFuture
as a parameter so this is not a valid fix forFutureOr
.It should only show the fix to make the scope async.
The text was updated successfully, but these errors were encountered: