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

Function done

lib/internal/cluster/round_robin_handle.js:54–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52 this.all.set(worker.id, worker);
53
54 const done = () => {
55 if (this.handle.getsockname) {
56 const out = {};
57 this.handle.getsockname(out);
58 // TODO(bnoordhuis) Check err.
59 send(null, { sockname: out }, null);
60 } else {
61 send(null, null, null); // UNIX socket.
62 }
63
64 this.handoff(worker); // In case there are connections pending.
65 };
66
67 if (this.server === null)
68 return done();

Callers 1

Calls 1

sendFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…