MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / invokeFunc

Function invokeFunc

packages/core/src/utils/debounce.ts:41–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 const setTimeoutImpl = options?.setTimeoutImpl || setTimeout;
40
41 function invokeFunc(): unknown {
42 cancelTimers();
43 callbackReturnValue = func();
44 return callbackReturnValue;
45 }
46
47 function cancelTimers(): void {
48 timerId !== undefined && clearTimeout(timerId);

Callers 1

flushFunction · 0.85

Calls 2

cancelTimersFunction · 0.85
funcFunction · 0.50

Tested by

no test coverage detected