Skip to content

Removed: await finishedTask; #32059

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 1 commit into from
Oct 28, 2022
Merged

Removed: await finishedTask; #32059

merged 1 commit into from
Oct 28, 2022

Conversation

vcrobe
Copy link
Contributor

@vcrobe vcrobe commented Oct 27, 2022

Summary

I've removed the await finishedTask; from line 244 because the task was awaited on line 231.

The task was awaited on line 231.
@vcrobe vcrobe requested a review from BillWagner as a code owner October 27, 2022 14:50
@dotnet-bot dotnet-bot added this to the October 2022 milestone Oct 27, 2022
@ghost ghost added the community-contribution Indicates PR is created by someone from the .NET community. label Oct 27, 2022
Copy link
Member

@IEvangelist IEvangelist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, we'll :shipit: - thank you 🙏

@IEvangelist IEvangelist merged commit ecc1d60 into dotnet:main Oct 28, 2022
@minsouk
Copy link
Contributor

minsouk commented Jan 3, 2023

I think Await finishedTask shouldn't be deleted. Await finishedTask was executed after receiving the already completed Task by Task.WhenAny. Therefore, waiting is not affected by execution time. Otherwise, exceptions that run asynchronously cannot be caught. Test the fire scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
async-task-programming/subsvc community-contribution Indicates PR is created by someone from the .NET community. dotnet-csharp/svc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants