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

Allow events to be manually flushed in notify-debouncer-full #591

Closed
wants to merge 1 commit into from

Conversation

anaisbetts
Copy link

Add a new public method flush_nonblocking which will indicate that all events will be processed in the next tick. This PR is useful for desktop applications where we might want to set the timeout to be quite high, but then signal a time when events should be optimistically processed, such as when the main window gets focus or after the system has been idle for a certain amount of time

TODO:

  • Add new flush_nonblocking method
  • Write tests

Add a new public method `flush_nonblocking` which will indicate that all events will be processed in the next tick
@anaisbetts anaisbetts changed the title Allow events to be manually flushed Allow events to be manually flushed in notify-debouncer-full May 6, 2024
anaisbetts added a commit to anaisbetts/gitbutler that referenced this pull request May 8, 2024
anaisbetts added a commit to anaisbetts/gitbutler that referenced this pull request May 8, 2024
anaisbetts added a commit to anaisbetts/gitbutler that referenced this pull request May 13, 2024
@anaisbetts anaisbetts closed this May 15, 2024
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.

None yet

1 participant