Skip to content

Conversation

sapphi-red
Copy link

When multiple events happened within the timeout, the events were not deduped.

To explain it more precisely, the return value of DebounceDataInner::debounced_events never contained a duplicate event, but event_handler was called multiple times for events within the timeout.

For example, when the timeout is 8 and the tick rate is 2, consider the following events:

  • 0: modify event
  • 3: modify event

event_handler is called with 0: modify event on 2, and 3: modify event on 4. But these two events are within the timeout so the event_handler should be only called with 3: modify event on 12. (It is 12 because that is the first tick after the timeout has passed from the last event)

graphite-app bot pushed a commit to rolldown/rolldown that referenced this pull request Sep 10, 2025
Temporary switch to my fork with a patch (notify-rs/notify#711) until the PR is merged.
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.

1 participant