Commit d3ac3d4
committed
Use Builtin.hopToActor in _runAsyncMain
If the optimizer is doing it's job, then @mainactor can't be used to
force another actor-independent async callee onto the main actor.
Instead, explicitly hop, which communicates the actual intent and is robust.1 parent c4f1f56 commit d3ac3d4
1 file changed
+3
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
742 | | - | |
743 | 742 | | |
744 | 743 | | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
745 | 747 | | |
746 | 748 | | |
747 | 749 | | |
748 | 750 | | |
749 | 751 | | |
750 | 752 | | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | 753 | | |
767 | 754 | | |
768 | 755 | | |
| |||
0 commit comments