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 maxWait option #31

Open
1 task done
micah-redwood opened this issue Sep 20, 2024 · 0 comments
Open
1 task done

Add maxWait option #31

micah-redwood opened this issue Sep 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@micah-redwood
Copy link

Describe the feature

Hey, first off thanks for this really, really useful async debouncer. Have yet to find another like it.

Just wanted to suggest adding a maxWait option like lodash. Helpful in the case where we want to make sure that we do something at least once every X seconds even if there's pretty much constant activity.

Some other nice to haves would be to be able to flush the debouncer or at least know if it's currently pending or not.

Happy to try my hand at a PR if it'd be helpful. Thanks!

Additional information

  • Would you be willing to help implement this feature?
@micah-redwood micah-redwood added the enhancement New feature or request label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant