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

Add SentrySdk.RunAsyncVoid helper method to Sentry SDK #3359

Closed
jamescrosswell opened this issue May 10, 2024 · 0 comments · Fixed by #3379
Closed

Add SentrySdk.RunAsyncVoid helper method to Sentry SDK #3359

jamescrosswell opened this issue May 10, 2024 · 0 comments · Fixed by #3379
Assignees
Labels
Feature New feature or request

Comments

@jamescrosswell
Copy link
Collaborator

See https://www.jamescrosswell.dev/posts/catching-async-void-exceptions/

For Sentry, by default we could capture the exception and send it to sentry... and optionally invoke any user defined callback (if one was supplied).

I just wanted something like this in a button click handler in Maui (that needed to call some async methods on HttpClient - no blocking versions of those methods exist).

@bitsandfoxes bitsandfoxes added the Feature New feature or request label May 10, 2024
@jamescrosswell jamescrosswell self-assigned this May 15, 2024
@jamescrosswell jamescrosswell changed the title Add RunAsyncVoidSafely helper method(s) to Sentry SDK Add SentrySdk.RunAsyncVoid helper method to Sentry SDK May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants