Skip to content

Commit 8180c26

Browse files
authored
Merge pull request #38600 from varungandhi-apple/vg-resume-to-generic-executor
[Runtime] Resume to the generic executor in the absence of an override.
2 parents fc67ba5 + d348fd9 commit 8180c26

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
@@ -997,7 +997,7 @@ static AsyncTask *swift_continuation_initImpl(ContinuationAsyncContext *context,
997997
// Set the current executor as the target executor unless there's
998998
// an executor override.
999999
if (!flags.hasExecutorOverride())
1000-
context->ResumeToExecutor = swift_task_getCurrentExecutor();
1000+
context->ResumeToExecutor = ExecutorRef::generic();
10011001

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

0 commit comments

Comments
 (0)