You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// In Swift 6, a `Task` enqueued from an actor begins executing immediately on that actor.
85
+
// Since we're running on our actor's context due to the isolated parmater, we can just dispatch a Task to get first-enqueued-first-start task execution.
86
+
Task{
87
+
awaitoperation(context)
88
+
}
89
+
}
90
+
91
+
forawaitactorTaskin taskStream {
92
+
awaitbeginExecuting(
93
+
actorTask.task,
94
+
in: actorTask.executionContext
95
+
)
96
+
}
97
+
}
102
98
}
103
99
104
100
/// Schedules an asynchronous task for execution and immediately returns.
@@ -140,6 +136,7 @@ public final class ActorQueue<ActorType: Actor>: @unchecked Sendable {
0 commit comments