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

Add option for a separate idle event timeout #289

Open
jarruda opened this issue Apr 7, 2022 · 1 comment
Open

Add option for a separate idle event timeout #289

jarruda opened this issue Apr 7, 2022 · 1 comment

Comments

@jarruda
Copy link

jarruda commented Apr 7, 2022

The --fire-idle-event option uses a period of 110% of the latency period. Reference

I would like to be able to set a different period for the idle event that is not based on the latency.

Use case:
My application uses the latency option to debounce several changes made in quick succession, and would like to use the idle period to perform maintenance activities. The scale of these two operations are an order of magnitude apart (5s vs 60s). My application uses fswatch to sleep for the majority of the time and only wake on file changes. If the idle event fires at roughly the latency period, then fswatch provides almost no value for my use case (I don't need to know which files changed).

An acceptable solution:

  • Add a switch to specify an optional idle timeout/period. This value would override the default value of 110% of the latency value.
@emcrisostomo
Copy link
Owner

Thanks for the comment @jarruda, I'll look into this.

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

No branches or pull requests

2 participants