4 of 6 standards met
Imagine we are trying to debounce a function. This means, the last call to should always go through. The current behaviour of is to ignore all subsequent calls. I would like an option that ensures the last call to the function always goes through. For , after each debounce period, the most recent call is executed, and not thrown away. For , the returned promise waits for the current promise to resolve, and either returns its value, or runs itself depending on whether there are more queued runs.
Repository: sindresorhus/p-debounce. Description: Debounce promise-returning & async functions Stars: 237, Forks: 26. Primary language: JavaScript. License: MIT. Latest release: v5.1.0 (8mo ago). Open PRs: 1, open issues: 3. Last activity: 7mo ago. Community health: 71%. Top contributors: sindresorhus, Richienb, BendingBender, darcyparker, fregante, Rafael09ED, matamatanot.