MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / debouncedFunction

Function debouncedFunction

src/common/util.js:39–46  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

37 }
38 }
39 function debouncedFunction(...args) {
40 startTime = performance.now() + time;
41 callback = () => {
42 callback = null;
43 func.apply(this, args);
44 };
45 checkTimer();
46 }
47 return debouncedFunction;
48}
49

Callers

nothing calls this directly

Calls 2

checkTimerFunction · 0.85
applyMethod · 0.45

Tested by

no test coverage detected