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

Method refCounted

lib/internal/child_process.js:591–595  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

589 // in progress. Once the user has explicitly requested a certain state, these
590 // methods become no-ops in order to not interfere with the user's intentions.
591 refCounted() {
592 if (++this.#refs === 1 && !this.#refExplicitlySet) {
593 this.#channel.ref();
594 }
595 }
596
597 unrefCounted() {
598 if (--this.#refs === 0 && !this.#refExplicitlySet) {

Callers 2

setupChannelFunction · 0.95
_forkChildFunction · 0.80

Calls 1

refMethod · 0.65

Tested by

no test coverage detected