(now)
| 524 | |
| 525 | |
| 526 | function processTimers(now) { |
| 527 | debug('process timer lists %d', now); |
| 528 | nextExpiry = Infinity; |
| 529 | |
| 530 | let list; |
| 531 | let ranAtLeastOneList = false; |
| 532 | while ((list = timerListQueue.peek()) != null) { |
| 533 | if (list.expiry > now) { |
| 534 | nextExpiry = list.expiry; |
| 535 | return timeoutInfo[0] > 0 ? nextExpiry : -nextExpiry; |
| 536 | } |
| 537 | if (ranAtLeastOneList) |
| 538 | runNextTicks(); |
| 539 | else |
| 540 | ranAtLeastOneList = true; |
| 541 | listOnTimeout(list, now); |
| 542 | } |
| 543 | return 0; |
| 544 | } |
| 545 | |
| 546 | function listOnTimeout(list, now) { |
| 547 | const msecs = list.msecs; |
nothing calls this directly
no test coverage detected
searching dependent graphs…