Skip to content

Handle OperationCanceledException from ctrl+c#3189

Merged
timcassell merged 2 commits into
masterfrom
catch-ctrlc
Jun 30, 2026
Merged

Handle OperationCanceledException from ctrl+c#3189
timcassell merged 2 commits into
masterfrom
catch-ctrlc

Conversation

@timcassell

Copy link
Copy Markdown
Collaborator

Secondary part of #3181.

@timcassell

Copy link
Copy Markdown
Collaborator Author

cc @filzrev

@@ -7,14 +7,12 @@ namespace BenchmarkDotNet.Helpers
public static class ExceptionHelper
{
public static bool IsProperCancelation(Exception ex, CancellationToken cancellationToken)

@filzrev filzrev Jun 30, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's not relating this PR though,
I thought this method should be renamed to IsProperCancellation.
And also need to rename IsCancelation to IsCancellation

@timcassell timcassell merged commit dde87a1 into master Jun 30, 2026
21 checks passed
@timcassell timcassell deleted the catch-ctrlc branch June 30, 2026 23:11
@timcassell timcassell added this to the v0.16.0 milestone Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants