Skip to content

Commit 592c1e8

Browse files
authored
Merge pull request #38601 from varungandhi-apple/vg-5.5-resume-to-generic-executor
[5.5] [Runtime] Resume to the generic executor in the absence of an override.
2 parents e0ec278 + 8bd1352 commit 592c1e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Concurrency/Task.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ static AsyncTask *swift_continuation_initImpl(ContinuationAsyncContext *context,
953953
// Set the current executor as the target executor unless there's
954954
// an executor override.
955955
if (!flags.hasExecutorOverride())
956-
context->ResumeToExecutor = swift_task_getCurrentExecutor();
956+
context->ResumeToExecutor = ExecutorRef::generic();
957957

958958
// We can initialize this with a relaxed store because resumption
959959
// must happen-after this call.

0 commit comments

Comments
 (0)