Commit 9c43d0e
src: simplify native immediate queue running
Make `SetImmediate()` behave more like `process.nextTick()`
(which matches how we use it) by also running tasks that have been
added during previous `SetImmediate()` calls.
PR-URL: nodejs#31502
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>1 parent a9c4fe5 commit 9c43d0e
1 file changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
687 | 687 | | |
688 | 688 | | |
689 | 689 | | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | 690 | | |
694 | 691 | | |
695 | 692 | | |
696 | | - | |
| 693 | + | |
| 694 | + | |
697 | 695 | | |
698 | 696 | | |
699 | 697 | | |
| |||
709 | 707 | | |
710 | 708 | | |
711 | 709 | | |
712 | | - | |
| 710 | + | |
713 | 711 | | |
714 | 712 | | |
715 | 713 | | |
| |||
0 commit comments