Browse Source

timers: clarify lib/timer.js comment

PR-URL: https://github.com/nodejs/node/pull/11018
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Lance Ball <lball@redhat.com>
v6.x-staging
Daniel Bevenius 8 years ago
committed by Myles Borins
parent
commit
e85cb9f3cd
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 2
      lib/timers.js

2
lib/timers.js

@ -72,7 +72,7 @@ const TIMEOUT_MAX = 2147483647; // 2^31-1
// timeout later, thus only needing to be appended.
// Removal from an object-property linked list is also virtually constant-time
// as can be seen in the lib/internal/linkedlist.js implementation.
// Timeouts only need to process any timers due to currently timeout, which will
// Timeouts only need to process any timers currently due to expire, which will
// always be at the beginning of the list for reasons stated above. Any timers
// after the first one encountered that does not yet need to timeout will also
// always be due to timeout at a later time.

Loading…
Cancel
Save