Skip to content

tweak: amend file-watching logic to not toss events older than 1s #5729

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

Merged
merged 1 commit into from
Jun 1, 2025

Conversation

mitchellwrosen
Copy link
Member

Overview

Worked on this with @Baccata (thanks!)

This PR amends the changes in #5631 and #5719 to be even simpler and better. Now, if you're running an IO action in the foreground of ucm (with run), and are meanwhile making changes to a .u file, the latest such change will be acted on when the run completes.

Implementation notes

Replaced queue with single cell, removed timestamp comparison logic

Test coverage

I tested this change manually

@mitchellwrosen mitchellwrosen marked this pull request as ready for review May 30, 2025 16:33
@mitchellwrosen mitchellwrosen requested a review from aryairani May 30, 2025 16:33
@aryairani aryairani merged commit 4f9f42f into trunk Jun 1, 2025
31 checks passed
@aryairani aryairani deleted the file-watch-tweak branch June 1, 2025 07:38
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