Revise our usage of return;
after IsCancellationRequested
check
#5063
Labels
Area: MTP
Belongs to the Microsoft.Testing.Platform core library
We often have this pattern:
testfx/src/Platform/Microsoft.Testing.Platform/OutputDevice/TerminalOutputDevice.cs
Lines 328 to 331 in 4dc9eeb
where would return immediately on cancellation. This pattern doesn't look right. Instead, we should call
ThrowIfCancellationRequested()
The text was updated successfully, but these errors were encountered: