Skip to content

refactor: improve auto fetch timer implementation using PeriodicTimer #1139

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

Closed
wants to merge 1 commit into from

Conversation

gadfly3173
Copy link
Contributor

#792 #1121

Replace System.Threading.Timer with PeriodicTimer for auto fetch functionality to:

  • Handle cancellation gracefully during repository close
  • Avoid unhandled exceptions in timer callbacks

sourcegit-scm#792 sourcegit-scm#1121

Replace System.Threading.Timer with PeriodicTimer for auto fetch functionality to:
- Handle cancellation gracefully during repository close
- Avoid unhandled exceptions in timer callbacks
@love-linger
Copy link
Collaborator

love-linger commented Mar 31, 2025

why not just use try .. catch statement in AutoFetchImpl?

@gadfly3173
Copy link
Contributor Author

Reasonable. I'm thinking too much.

@gadfly3173 gadfly3173 closed this Mar 31, 2025
@gadfly3173 gadfly3173 deleted the fix/nre-timer branch April 1, 2025 01:15
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