Commit 83ff89b
committed
timers: allow Immediates to be unrefed
Slightly refactor the immediates handling to allow for them to be
unrefed, similar to setTimeout, but without extra handles.
Document the new `immediate.ref()` and `immediate.unref()` methods.1 parent c84582c commit 83ff89b
File tree
10 files changed
+210
-92
lines changed- doc/api
- lib
- src
- test
- addons-napi/test_uv_loop
- parallel
10 files changed
+210
-92
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
21 | 53 | | |
22 | 54 | | |
23 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
57 | 58 | | |
58 | | - | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
| 62 | + | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
| |||
656 | 659 | | |
657 | 660 | | |
658 | 661 | | |
659 | | - | |
| 662 | + | |
660 | 663 | | |
661 | 664 | | |
662 | 665 | | |
| |||
668 | 671 | | |
669 | 672 | | |
670 | 673 | | |
671 | | - | |
672 | | - | |
| 674 | + | |
673 | 675 | | |
674 | 676 | | |
675 | 677 | | |
676 | 678 | | |
677 | | - | |
| 679 | + | |
678 | 680 | | |
679 | 681 | | |
680 | 682 | | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
| 683 | + | |
687 | 684 | | |
688 | 685 | | |
689 | 686 | | |
690 | 687 | | |
691 | 688 | | |
692 | 689 | | |
693 | 690 | | |
694 | | - | |
| 691 | + | |
695 | 692 | | |
696 | 693 | | |
697 | 694 | | |
| |||
700 | 697 | | |
701 | 698 | | |
702 | 699 | | |
703 | | - | |
704 | | - | |
705 | | - | |
| 700 | + | |
706 | 701 | | |
707 | | - | |
708 | | - | |
709 | | - | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
710 | 705 | | |
711 | 706 | | |
712 | | - | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
713 | 712 | | |
714 | 713 | | |
715 | | - | |
| 714 | + | |
716 | 715 | | |
717 | 716 | | |
718 | 717 | | |
| |||
729 | 728 | | |
730 | 729 | | |
731 | 730 | | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
741 | 754 | | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
| 755 | + | |
749 | 756 | | |
750 | 757 | | |
751 | | - | |
752 | | - | |
753 | | - | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
754 | 766 | | |
755 | | - | |
756 | | - | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
757 | 776 | | |
758 | 777 | | |
759 | 778 | | |
| |||
793 | 812 | | |
794 | 813 | | |
795 | 814 | | |
796 | | - | |
| 815 | + | |
| 816 | + | |
797 | 817 | | |
798 | | - | |
799 | | - | |
800 | | - | |
| 818 | + | |
| 819 | + | |
801 | 820 | | |
802 | | - | |
803 | | - | |
804 | | - | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
805 | 825 | | |
806 | 826 | | |
807 | 827 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
232 | 236 | | |
233 | 237 | | |
234 | 238 | | |
| |||
241 | 245 | | |
242 | 246 | | |
243 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
244 | 256 | | |
245 | 257 | | |
246 | 258 | | |
| |||
538 | 550 | | |
539 | 551 | | |
540 | 552 | | |
541 | | - | |
| 553 | + | |
| 554 | + | |
542 | 555 | | |
543 | 556 | | |
544 | 557 | | |
545 | | - | |
546 | | - | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
547 | 561 | | |
548 | | - | |
549 | | - | |
550 | 562 | | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
551 | 574 | | |
552 | 575 | | |
553 | 576 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| |||
274 | 276 | | |
275 | 277 | | |
276 | 278 | | |
| 279 | + | |
277 | 280 | | |
278 | 281 | | |
279 | 282 | | |
280 | 283 | | |
281 | 284 | | |
282 | 285 | | |
| 286 | + | |
| 287 | + | |
283 | 288 | | |
284 | 289 | | |
285 | 290 | | |
286 | 291 | | |
287 | 292 | | |
288 | 293 | | |
| 294 | + | |
289 | 295 | | |
290 | 296 | | |
291 | 297 | | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | 298 | | |
302 | 299 | | |
303 | 300 | | |
304 | | - | |
305 | | - | |
306 | 301 | | |
307 | | - | |
| 302 | + | |
308 | 303 | | |
309 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
310 | 308 | | |
311 | 309 | | |
312 | 310 | | |
| |||
318 | 316 | | |
319 | 317 | | |
320 | 318 | | |
321 | | - | |
| 319 | + | |
| 320 | + | |
322 | 321 | | |
323 | 322 | | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
328 | 330 | | |
329 | 331 | | |
330 | 332 | | |
| |||
0 commit comments