MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / invoke

Function invoke

out/cli.cjs:72643–72651  ·  view source on GitHub ↗
(args, now = Date.now())

Source from the content-addressed store, hash-verified

72641var speedometer_default = speedometer;
72642
72643// node_modules/axios/lib/helpers/throttle.js
72644function throttle(fn, freq) {
72645 let timestamp = 0;
72646 let threshold = 1e3 / freq;
72647 let lastArgs;
72648 let timer;
72649 const invoke = (args, now = Date.now()) => {
72650 timestamp = now;
72651 lastArgs = null;
72652 if (timer) {
72653 clearTimeout(timer);
72654 timer = null;

Callers 2

throttledFunction · 0.85
flushFunction · 0.85

Calls 1

clearTimeoutFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…