MCPcopy Index your code
hub / github.com/pyscript/pyscript / onWorker

Function onWorker

core/src/core.js:250–254  ·  view source on GitHub ↗
(_, xworker)

Source from the content-addressed store, hash-verified

248 console.debug("[pyscript/main] PyScript Ready");
249 },
250 onWorker(_, xworker) {
251 assign(xworker.sync, sync);
252 for (const callback of main("onWorker"))
253 callback(_, xworker);
254 },
255 onBeforeRun(wrap, element) {
256 currentElement = element;
257 bootstrapNodeAndPlugins(main, wrap, element, "onBeforeRun");

Callers

nothing calls this directly

Calls 3

mainFunction · 0.90
assignFunction · 0.85
callbackFunction · 0.85

Tested by

no test coverage detected