RedHatInsights/insights-rbac-ui

View on GitHub
src/utilities/async-debounce.ts

Summary

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

export default (asyncFunction: (...args: any[]) => Promise<any>, debounceTime = 250, options = { onlyResolvesLast: false }) =>
  awesomeDebouncePromise(asyncFunction, debounceTime, options);