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

Emits multiple of the same events on change #401

Closed
jameygleason opened this issue Oct 4, 2021 · 2 comments · Fixed by #496
Closed

Emits multiple of the same events on change #401

jameygleason opened this issue Oct 4, 2021 · 2 comments · Fixed by #496
Labels

Comments

@jameygleason
Copy link

jameygleason commented Oct 4, 2021

Before reporting an issue, please ensure you are using the latest release of fsnotify.

Which operating system (GOOS) and version are you using?

Linux:
No LSB modules are available.
Distributor ID: Pop
Description: Pop!_OS 21.04
Release: 21.04
Codename: hirsute

Please describe the issue that occurred.

Emits multiple of the same events on change

I've tried to debounce, but it didn't work.

I'm trying to have it do only emit one event, say on save or a file being deleted.

The goal is to run a function once on a save/create/delete event.

@abenz1267
Copy link

this is a common "issue" and is solved creating a batcher of some kind. the implementation is up to you. look here for an example.

This is not an "issue" per se.

@nathany
Copy link
Contributor

nathany commented Jan 19, 2022

Maybe all these "multiple events" issues should be addressed with documentation in the README?

Maybe a built-in batcher is a reasonable feature request as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants