@newdash/newdash
Version:
javascript/typescript utility library
15 lines (14 loc) • 488 B
TypeScript
import { AsyncFunction } from "../types";
/**
* concurrency simply debounce function
*
* it will create a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked
*
* @since 5.18.0
* @category Async
*
* @param runner
* @param wait wait milliseconds before last time invocation
*/
export declare function debounce<T extends AsyncFunction>(runner: T, wait: number): T;
export default debounce;