MCPcopy Index your code
hub / github.com/ternjs/tern / waitOnFetch

Function waitOnFetch

lib/tern.js:351–359  ·  view source on GitHub ↗
(srv, timeBudget, c)

Source from the content-addressed store, hash-verified

349 }
350
351 function waitOnFetch(srv, timeBudget, c) {
352 var done = function() {
353 srv.off("everythingFetched", done);
354 clearTimeout(timeout);
355 analyzeAll(srv, timeBudget, c);
356 };
357 srv.on("everythingFetched", done);
358 var timeout = setTimeout(done, srv.options.fetchTimeout);
359 }
360
361 function analyzeAll(srv, timeBudget, c) {
362 if (srv.pending) return waitOnFetch(srv, timeBudget, c);

Callers 1

analyzeAllFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…