MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / cleanup

Function cleanup

content/utils.js:82–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 let settled = false;
81 let stopTimer = null;
82 const cleanup = () => {
83 if (settled) return;
84 settled = true;
85 observer.disconnect();
86 clearTimeout(timer);
87 clearTimeout(stopTimer);
88 };
89
90 const observer = new MutationObserver(() => {
91 if (flowStopped) {

Callers 3

waitForElementFunction · 0.70
pollStopFunction · 0.70
waitForElementByTextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected