Skip to content

Make DurationSignalTracker run in main thread rather than private one#239

Closed
Jeehut wants to merge 1 commit intomainfrom
feature/main-duration-tracker
Closed

Make DurationSignalTracker run in main thread rather than private one#239
Jeehut wants to merge 1 commit intomainfrom
feature/main-duration-tracker

Conversation

@Jeehut
Copy link
Copy Markdown
Contributor

@Jeehut Jeehut commented Mar 23, 2025

Fixes #237.

Note: Previously, we were blocking the main thread and waiting for a background thread to execute the code, which was an unnecessary thread switch that only added overhead without any added safety. This avoids that.

@Jeehut
Copy link
Copy Markdown
Contributor Author

Jeehut commented Mar 24, 2025

After seeing and testing this "fix", the author of #237 concluded that there was actually no issue after all with our implementation and that it's probably more resilient. So I'm closing this PR without merging.

@Jeehut Jeehut closed this Mar 24, 2025
@Jeehut Jeehut removed the request for review from winsmith March 24, 2025 07:12
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.

MainActor-only durationSignal API with unnecessary GCD queue overhead

1 participant