MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / waitOnFetch

Function waitOnFetch

lib/web/tern/tern.js:344–352  ·  view source on GitHub ↗
(srv, timeBudget, c)

Source from the content-addressed store, hash-verified

342 }
343
344 function waitOnFetch(srv, timeBudget, c) {
345 var done = function() {
346 srv.off("everythingFetched", done);
347 clearTimeout(timeout);
348 analyzeAll(srv, timeBudget, c);
349 };
350 srv.on("everythingFetched", done);
351 var timeout = setTimeout(done, srv.options.fetchTimeout);
352 }
353
354 function analyzeAll(srv, timeBudget, c) {
355 if (srv.pending) return waitOnFetch(srv, timeBudget, c);

Callers 1

analyzeAllFunction · 0.85

Calls 1

onMethod · 0.45

Tested by

no test coverage detected