Skip to content

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

Closed
anaisbetts wants to merge 1 commit intonotify-rs:mainfrom
anaisbetts:main
Closed

Allow events to be manually flushed in notify-debouncer-full#591
anaisbetts wants to merge 1 commit intonotify-rs:mainfrom
anaisbetts:main

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.

1 participant

Comments