glebec / potential

An educational Promises/A+ spec compliant promise library
MIT License
13 stars 3 forks source link

Add debounce class method #2

Open omriAckley opened 8 years ago

omriAckley commented 8 years ago

This is for transforming a function (source) into one (debounced) that will not re-execute the source if the source returns a promise and a previous execution's promise has yet to resolve.

glebec commented 8 years ago

Will merge this when it has tests (by you or me, either way) and when the namespace is fixed as mentioned above. :-)

If you work on this, make sure to pull & merge master as the core library has changed since this PR was opened.

joeldarling commented 8 years ago

Would love this feature.