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

Function removeHandlesForWorker

lib/internal/cluster/primary.js:152–159  ·  view source on GitHub ↗
(worker)

Source from the content-addressed store, hash-verified

150}
151
152function removeHandlesForWorker(worker) {
153 assert(worker);
154
155 for (const { 0: key, 1: handle } of handles) {
156 if (handle.remove(worker))
157 handles.delete(key);
158 }
159}
160
161cluster.fork = function(env) {
162 cluster.setupPrimary();

Callers 1

primary.jsFile · 0.85

Calls 3

deleteMethod · 0.65
assertFunction · 0.50
removeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…