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

feat: Added Func<bool> IsMainThread to options #1803

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

bitsandfoxes
Copy link
Contributor

Added a hook to the options to allow overwriting the check whether the current thread is the main thread.

Copy link
Contributor

github-actions bot commented Sep 12, 2024

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 8fe1fd2

@@ -194,6 +194,11 @@ public sealed class SentryUnityOptions : SentryOptions
/// </summary>
public bool PerformanceAutoInstrumentationEnabled { get; set; } = false;

/// <summary>
/// Allows to overwrite the check to determine whether the current thread is the main thread
Copy link
Member

Choose a reason for hiding this comment

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

I'm lacking an understanding of why would you need to override it. We should ask folks who need this hook to elaborate on the use case so we can expand on this summary here

Base automatically changed from feat/mainthreaddata to main September 12, 2024 20:49
@bitsandfoxes bitsandfoxes marked this pull request as draft September 30, 2024 14:44
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