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

Method ref

lib/internal/timers.js:252–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

250 }
251
252 ref() {
253 if (!this[kRefed]) {
254 this[kRefed] = true;
255 if (!this._destroyed)
256 incRefCount();
257 }
258 return this;
259 }
260
261 hasRef() {
262 return this[kRefed];

Callers

nothing calls this directly

Calls 1

incRefCountFunction · 0.85

Tested by

no test coverage detected