File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -564,13 +564,18 @@ static void performEscalationAction(TaskStatusRecord *record,
564
564
return ;
565
565
566
566
// Child tasks need to be recursively escalated.
567
- case TaskStatusRecordKind::ChildTask:
568
- case TaskStatusRecordKind::TaskGroup: {
567
+ case TaskStatusRecordKind::ChildTask: {
569
568
auto childRecord = cast<ChildTaskStatusRecord>(record);
570
569
for (AsyncTask *child: childRecord->children ())
571
570
swift_task_escalate (child, newPriority);
572
571
return ;
573
572
}
573
+ case TaskStatusRecordKind::TaskGroup: {
574
+ auto childRecord = cast<TaskGroupTaskStatusRecord>(record);
575
+ for (AsyncTask *child: childRecord->children ())
576
+ swift_task_escalate (child, newPriority);
577
+ return ;
578
+ }
574
579
575
580
// Cancellation notifications can be ignore.
576
581
case TaskStatusRecordKind::CancellationNotification:
You can’t perform that action at this time.
0 commit comments