Skip to content

Commit a710167

Browse files
JungMinuaddaleax
authored andcommitted
lib: rename kMaxCallbacksUntilQueueIsShortened
PR-URL: #11473 Ref: #11199 (comment) Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 47034e1 commit a710167

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/internal/process/next_tick.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// large and cause the process to run out of memory. When this value
55
// is reached the nextTimeQueue array will be shortend (see tickDone
66
// for details).
7-
const kMaxCallbacksUntilQueueIsShortened = 1e4;
7+
const kMaxCallbacksPerLoop = 1e4;
88

99
exports.setup = setupNextTick;
1010

@@ -102,7 +102,7 @@ function setupNextTick() {
102102
// callback invocation with small numbers of arguments to avoid the
103103
// performance hit associated with using `fn.apply()`
104104
_combinedTickCallback(args, callback);
105-
if (kMaxCallbacksUntilQueueIsShortened < tickInfo[kIndex])
105+
if (kMaxCallbacksPerLoop < tickInfo[kIndex])
106106
tickDone();
107107
}
108108
tickDone();
@@ -126,7 +126,7 @@ function setupNextTick() {
126126
// callback invocation with small numbers of arguments to avoid the
127127
// performance hit associated with using `fn.apply()`
128128
_combinedTickCallback(args, callback);
129-
if (kMaxCallbacksUntilQueueIsShortened < tickInfo[kIndex])
129+
if (kMaxCallbacksPerLoop < tickInfo[kIndex])
130130
tickDone();
131131
if (domain)
132132
domain.exit();

0 commit comments

Comments
 (0)