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

Function close

lib/internal/cluster/primary.js:347–353  ·  view source on GitHub ↗
(worker, message)

Source from the content-addressed store, hash-verified

345// Server in worker is closing, remove from list. The handle may have been
346// removed by a prior call to removeHandlesForWorker() so guard against that.
347function close(worker, message) {
348 const key = message.key;
349 const handle = handles.get(key);
350
351 if (handle && handle.remove(worker))
352 handles.delete(key);
353}
354
355function send(worker, message, handle, cb) {
356 return sendHelper(worker.process, message, handle, cb);

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
deleteMethod · 0.65
removeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…