ManageIQ/manageiq-ui-classic

View on GitHub
app/javascript/helpers/promise-debounce.js

Summary

Maintainability
A
0 mins
Test Coverage
import AwesomeDebouncePromise from 'awesome-debounce-promise';

export default (asyncFunction, debounceTime = 250, options = { onlyResolvesLast: false }) => AwesomeDebouncePromise(
  asyncFunction,
  debounceTime,
  options,
);