Skip to content

Commit 6a94c1a

Browse files
danbevjasnell
authored andcommitted
timers: clarify lib/timer.js comment
PR-URL: #11018 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Lance Ball <lball@redhat.com>
1 parent bd07574 commit 6a94c1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/timers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const TIMEOUT_MAX = 2147483647; // 2^31-1
107107
// timeout later, thus only needing to be appended.
108108
// Removal from an object-property linked list is also virtually constant-time
109109
// as can be seen in the lib/internal/linkedlist.js implementation.
110-
// Timeouts only need to process any timers due to currently timeout, which will
110+
// Timeouts only need to process any timers currently due to expire, which will
111111
// always be at the beginning of the list for reasons stated above. Any timers
112112
// after the first one encountered that does not yet need to timeout will also
113113
// always be due to timeout at a later time.

0 commit comments

Comments
 (0)