sentry-xamarin
sentry-xamarin copied to clipboard
Discuss CancelationToken on FormsApplicationListener
To not lose the comment from Matt
https://github.com/getsentry/sentry-xamarin/pull/108#pullrequestreview-932694614
Yikes. I see this was in the old code and you are just refactoring, but we really shouldn't completely lose this task. It should be saved somewhere. We should also register it for cancellation so it can be shut down gracefully. I'm OK if this is done in a future PR, but wanted to point it out.
On https://github.com/getsentry/sentry-xamarin/blob/6c15473b6ddaa10afc0274cd131cb2a612628361/Src/Sentry.Xamarin.Forms/Internals/FormsApplicationListener.cs#L30-L45
Task.Run() should have the value assigned somewhere and the result/exception inspected, or at least a whole try/catch in the body handling any error (we should do this anyway). Also we could go with ContinuesWith(...)
Xamarin is out of support by Microsoft. So while we're happy to take PRs here and get a new release out with fixes. We won't be making big investments here and instead invest on .NET Mobile and MAUI.