Skip to content

Conversation

@TanayParikh
Copy link
Contributor

@TanayParikh TanayParikh commented Jan 7, 2022

This is a pretty flaky issue, but after this change I've been unable to repro the task cancellation.

View with w=1 (no whitespace changes) to simplify review. I just moved the try/catch block to the method, rather than have it at the call location, as we do not await the async function at the call location.

Fixes: dotnet/aspnetcore#37113
Fixes: dotnet/aspnetcore#37047

@TanayParikh TanayParikh requested a review from pranavkm January 7, 2022 16:48
@TanayParikh TanayParikh self-assigned this Jan 7, 2022
@ghost
Copy link

ghost commented Jan 7, 2022

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@TanayParikh TanayParikh changed the title Catch dotnet watch task cancellation when CTRL+C Catch dotnet watch task cancellation after CTRL+C Jan 7, 2022
@TanayParikh TanayParikh added the Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch label Jan 7, 2022
Copy link
Contributor

@pranavkm pranavkm left a comment

Choose a reason for hiding this comment

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

Nice!

@TanayParikh TanayParikh enabled auto-merge (squash) January 7, 2022 17:37
@TanayParikh TanayParikh merged commit abaa783 into main Jan 7, 2022
@TanayParikh TanayParikh deleted the taparik/fixDotNetWatvhTaskCancellation branch January 7, 2022 23:18
TanayParikh added a commit that referenced this pull request Jan 12, 2022
TanayParikh added a commit that referenced this pull request Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dotnet watch run throws AFTER CTRL-C dotnet watch: Ctrl-C doesn't reset the terminal echo on Mac

3 participants