MCPcopy
hub / github.com/plasma-umass/browsix / removeRunDependency

Function removeRunDependency

src/ld.js:1864–1880  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

1862Module["addRunDependency"] = addRunDependency;
1863
1864function removeRunDependency(id) {
1865 runDependencies--;
1866 if (Module['monitorRunDependencies']) {
1867 Module['monitorRunDependencies'](runDependencies);
1868 }
1869 if (runDependencies == 0) {
1870 if (runDependencyWatcher !== null) {
1871 clearInterval(runDependencyWatcher);
1872 runDependencyWatcher = null;
1873 }
1874 if (dependenciesFulfilled) {
1875 var callback = dependenciesFulfilled;
1876 dependenciesFulfilled = null;
1877 callback(); // can add another dependenciesFulfilled
1878 }
1879 }
1880}
1881Module["removeRunDependency"] = removeRunDependency;
1882
1883Module["preloadedImages"] = {}; // maps url to image data

Callers 3

finishFunction · 0.70
processDataFunction · 0.70
applyMemoryInitializerFunction · 0.70

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected