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

Function kill

core/src/plugins/donkey.js:84–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82 let farmer = await utils(options);
83 let working = false;
84 const kill = () => {
85 if (farmer) {
86 farmer.xworker.terminate();
87 farmer.terminal.dispose();
88 farmer = null;
89 }
90 working = false;
91 };
92 const reload = async () => {
93 kill();
94 farmer = await utils(options);

Callers 2

reloadFunction · 0.85
index.jsFile · 0.85

Calls 1

disposeMethod · 0.45

Tested by

no test coverage detected