Skip to content
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

Removed RunAsyncVoid method #3466

Merged
merged 2 commits into from
Jul 10, 2024
Merged

Removed RunAsyncVoid method #3466

merged 2 commits into from
Jul 10, 2024

Conversation

jamescrosswell
Copy link
Collaborator

@jamescrosswell jamescrosswell commented Jul 9, 2024

After further testing, we can't find any use case for this extension method so we're removing it from the SDK.

Technically this is a breaking change. Alternatively, we could mark it obsolete instead and remove it in the next major release but it's highly improbably that anyone is using this method.

@bitsandfoxes
Copy link
Contributor

Could you add a comment here on why we're removing it?

@jamescrosswell
Copy link
Collaborator Author

Could you add a comment here on why we're removing it?

I can... it's embarrassing but I had initially thought there were scenarios in which you couldn't catch an exception from an async void method which this extension could handle. It turns out there are no practical scenarios where that's true. The code in UI event handlers can just be wrapped in a try..catch and then there's no need for this extension method.

It probably doesn't need any more detail than that since it would be the detail of an imaginary problem (not a real one) to which this extension method would be a solution.

Copy link
Contributor

@bitsandfoxes bitsandfoxes left a comment

Choose a reason for hiding this comment

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

Since apparently it didn't do anything, let's just remove it.

@bitsandfoxes bitsandfoxes merged commit 76e9f66 into main Jul 10, 2024
21 checks passed
@bitsandfoxes bitsandfoxes deleted the remove-async-void branch July 10, 2024 12:43
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