Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moszeed/es6-promise-debounce
a debounce for promises
https://github.com/moszeed/es6-promise-debounce
Last synced: about 20 hours ago
JSON representation
a debounce for promises
- Host: GitHub
- URL: https://github.com/moszeed/es6-promise-debounce
- Owner: moszeed
- Created: 2015-06-05T11:03:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-09T23:58:33.000Z (about 8 years ago)
- Last Synced: 2024-10-31T17:35:30.548Z (14 days ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 19
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#es6-promise-debounce
a debounce function for promises#example
var debounce = require('es6-promise-debounce');
var debouncedFunction = debounce(function() {
return new Promise(function(resolve) {
resolve();
});
}, 200);debouncedFunction().then(function() { console.log('this one should be ignored'); });
debouncedFunction().then(function() { console.log('this one should be executed'); });