MCPcopy Create free account
hub / github.com/CanadaHonk/shadow / allocHelper

Function allocHelper

engine/polys.js:58–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 let helpers = [];
57
58 function allocHelper() {
59 if (helpers.length > 0)
60 return helpers.pop();
61 let h = new Worker("data:application/javascript," + encodeURIComponent(helperCode));
62 return h;
63 }
64
65 function freeHelper(h) {
66 helpers.push(h);

Callers 1

waitAsyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected