@@ -234,7 +234,7 @@ void AsyncTask::completeFuture(AsyncContext *context) {
234234
235235 // Enqueue the waiter on the global executor.
236236 // TODO: allow waiters to fill in a suggested executor
237- waitingTask->flagAsEnqueuedOnExecutor (ExecutorRef::generic ());
237+ waitingTask->flagAsAndEnqueueOnExecutor (ExecutorRef::generic ());
238238
239239 // Move to the next task.
240240 waitingTask = nextWaitingTask;
@@ -847,7 +847,7 @@ static AsyncTaskAndContext swift_task_create_commonImpl(
847847 // If we're supposed to enqueue the task, do so now.
848848 if (taskCreateFlags.enqueueJob ()) {
849849 swift_retain (task);
850- task->flagAsEnqueuedOnExecutor (executor);
850+ task->flagAsAndEnqueueOnExecutor (executor);
851851 }
852852
853853 return {task, initialContext};
@@ -1020,7 +1020,7 @@ SWIFT_CC(swift)
10201020static void
10211021swift_task_enqueueTaskOnExecutorImpl(AsyncTask *task, ExecutorRef executor)
10221022{
1023- task->flagAsEnqueuedOnExecutor (executor);
1023+ task->flagAsAndEnqueueOnExecutor (executor);
10241024}
10251025
10261026SWIFT_CC (swift)
@@ -1151,7 +1151,7 @@ static void resumeTaskAfterContinuation(AsyncTask *task,
11511151 // to make a stronger best-effort attempt to catch racing attempts to
11521152 // resume the continuation?
11531153
1154- task->flagAsEnqueuedOnExecutor (context->ResumeToExecutor );
1154+ task->flagAsAndEnqueueOnExecutor (context->ResumeToExecutor );
11551155}
11561156
11571157SWIFT_CC (swift)
0 commit comments