bjoerge / debounce-promise

Create a debounced version of a promise returning function
MIT License
241 stars 27 forks source link

Add support for function as `wait` parameter #1

Closed spikebrehm closed 8 years ago

spikebrehm commented 8 years ago

In order to satisfy a use case for our app, we need the ability to lazily evaulate the wait duration of the debounce timeout. Accomplish this by allowing wait to be a function.

@bjoerge would you accept this change?

bjoerge commented 8 years ago

Super useful, thanks! Published as v1.1.0

spikebrehm commented 8 years ago

Thank you thank you thank you!