MCPcopy Index your code
hub / github.com/nodejs/node / terminateAllThreads

Function terminateAllThreads

test/fixtures/wasi-preview-1.js:58–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 let nextTid = 43;
57 const workers = [];
58 const terminateAllThreads = () => {
59 workers.forEach((w) => w.terminate());
60 };
61 const proc_exit = importObject.wasi_snapshot_preview1.proc_exit;
62 importObject.wasi_snapshot_preview1.proc_exit = function(code) {
63 terminateAllThreads();

Callers 2

wasi-preview-1.jsFile · 0.85
spawnFunction · 0.85

Calls 2

forEachMethod · 0.65
terminateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…