UNPKG

coc.nvim

Version:

LSP based intellisense engine for neovim & vim8.

11 lines (10 loc) 424 B
/** * Returns a new function that, when invoked, invokes `func` at most once per `wait` milliseconds. * * @param {Function} func Function to wrap. * @param {Number} wait Number of milliseconds that must elapse between `func` invocations. * @return {Function} A new function that wraps the `func` function passed in. */ export default function throttle(func: Function, wait: number): Function & { clear(): void; };