@nexapp/debounce-await
v1.1.0
Published
Debounce async functions by resolve status
Downloads
7
Readme
Installation
$ npm install @nexapp/debounce-await --save
or
$ yarn add @nexapp/debounce-await
Usage
Like debounce
, but instead of using a delay, it's based on promises' resolve status.
Eg: If you execute a promise twice, but the first promise has not resolved, it won't trigger the second one.
For code examples, please refer to the tests.