(callback, args)
| 650 | |
| 651 | class 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) { |
nothing calls this directly
no test coverage detected