perfect-debounce icon indicating copy to clipboard operation
perfect-debounce copied to clipboard

Add maxWait option

Open micah-redwood opened this issue 1 year ago • 0 comments

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

  • [X] Would you be willing to help implement this feature?

micah-redwood avatar Sep 20 '24 22:09 micah-redwood