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

Method constructor

lib/internal/timers.js:652–666  ·  view source on GitHub ↗
(callback, args)

Source from the content-addressed store, hash-verified

650
651class Immediate {
652 constructor(callback, args) {
653 this._idleNext = null;
654 this._idlePrev = null;
655 this._onImmediate = callback;
656 this._argv = args;
657 this._destroyed = false;
658 this[kRefed] = false;
659
660 initAsyncResource(this, 'Immediate');
661
662 this.ref();
663 immediateInfo[kCount]++;
664
665 immediateQueue.append(this);
666 }
667
668 ref() {
669 if (this[kRefed] === false) {

Callers

nothing calls this directly

Calls 3

refMethod · 0.95
initAsyncResourceFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected