MCPcopy Index your code
hub / github.com/microsoft/SandDance / cancel

Function cancel

docs/app/js/sanddance-app.js:20964–20967  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20962 return !!timeoutId;
20963 };
20964 var cancel = function() {
20965 if (pending()) // Mark the debounced function as having executed
20966 markExecuted(Date.now());
20967 };
20968 var flush = function() {
20969 if (pending()) invokeFunction(Date.now());
20970 return lastResult;

Callers

nothing calls this directly

Calls 2

markExecutedFunction · 0.85
pendingFunction · 0.70

Tested by

no test coverage detected