MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / check

Function check

src/sidebarApps/extensions/index.js:272–280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

270
271 return new Promise((resolve) => {
272 const check = () => {
273 const searchInput = getSearchInput();
274 if (searchInput || Date.now() - startTime >= SEARCH_INPUT_WAIT_TIMEOUT) {
275 resolve(searchInput);
276 return;
277 }
278
279 requestAnimationFrame(check);
280 };
281
282 check();
283 });

Callers 1

waitForSearchInputFunction · 0.70

Calls 2

getSearchInputFunction · 0.85
resolveFunction · 0.85

Tested by

no test coverage detected