mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Often closely related to util.debounce use cases, this adds an implementation of throttle(fn) .. returns a function that limits the number of concurrent invocations of fn. Signed-off-by: James M Snell <jasnell@gmail.com> Assisted-by: Opencode PR-URL: https://github.com/nodejs/node/pull/65899 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>