MCPcopy Create free account
hub / github.com/GoogleChrome/samples / removeRunDependency

Function removeRunDependency

mkbitmap/mkbitmap.js:645–669  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

643}
644
645function removeRunDependency(id) {
646 runDependencies--;
647
648 if (Module['monitorRunDependencies']) {
649 Module['monitorRunDependencies'](runDependencies);
650 }
651
652 if (id) {
653 assert(runDependencyTracking[id]);
654 delete runDependencyTracking[id];
655 } else {
656 err('warning: run dependency removed without ID');
657 }
658 if (runDependencies == 0) {
659 if (runDependencyWatcher !== null) {
660 clearInterval(runDependencyWatcher);
661 runDependencyWatcher = null;
662 }
663 if (dependenciesFulfilled) {
664 var callback = dependenciesFulfilled;
665 dependenciesFulfilled = null;
666 callback(); // can add another dependenciesFulfilled
667 }
668 }
669}
670
671/** @param {string|number=} what */
672function abort(what) {

Callers 4

receiveInstanceFunction · 0.70
asyncLoadFunction · 0.70
finishFunction · 0.70
processDataFunction · 0.70

Calls 2

callbackFunction · 0.85
assertFunction · 0.70

Tested by

no test coverage detected