@@ -272,14 +272,15 @@ public struct TaskGroup<ChildTaskResult: Sendable> {
272
272
let flags = taskCreateFlags (
273
273
priority: priority, isChildTask: true , copyTaskLocals: false ,
274
274
inheritContext: false , enqueueJob: false ,
275
- addPendingGroupTaskUnconditionally: true
275
+ addPendingGroupTaskUnconditionally: true ,
276
+ isDiscardingTask: false
276
277
)
277
278
#else
278
279
let flags = taskCreateFlags (
279
280
priority: priority, isChildTask: true , copyTaskLocals: false ,
280
281
inheritContext: false , enqueueJob: true ,
281
- addPendingGroupTaskUnconditionally: true
282
- )
282
+ addPendingGroupTaskUnconditionally: true ,
283
+ isDiscardingTask : false )
283
284
#endif
284
285
285
286
// Create the task in this group.
@@ -314,14 +315,14 @@ public struct TaskGroup<ChildTaskResult: Sendable> {
314
315
let flags = taskCreateFlags (
315
316
priority: priority, isChildTask: true , copyTaskLocals: false ,
316
317
inheritContext: false , enqueueJob: false ,
317
- addPendingGroupTaskUnconditionally: false
318
- )
318
+ addPendingGroupTaskUnconditionally: false ,
319
+ isDiscardingTask : false )
319
320
#else
320
321
let flags = taskCreateFlags (
321
322
priority: priority, isChildTask: true , copyTaskLocals: false ,
322
323
inheritContext: false , enqueueJob: true ,
323
- addPendingGroupTaskUnconditionally: false
324
- )
324
+ addPendingGroupTaskUnconditionally: false ,
325
+ isDiscardingTask : false )
325
326
#endif
326
327
327
328
// Create the task in this group.
@@ -354,8 +355,8 @@ public struct TaskGroup<ChildTaskResult: Sendable> {
354
355
let flags = taskCreateFlags (
355
356
priority: nil , isChildTask: true , copyTaskLocals: false ,
356
357
inheritContext: false , enqueueJob: true ,
357
- addPendingGroupTaskUnconditionally: true
358
- )
358
+ addPendingGroupTaskUnconditionally: true ,
359
+ isDiscardingTask : false )
359
360
360
361
// Create the task in this group.
361
362
_ = Builtin . createAsyncTaskInGroup ( flags, _group, operation)
@@ -394,8 +395,8 @@ public struct TaskGroup<ChildTaskResult: Sendable> {
394
395
let flags = taskCreateFlags (
395
396
priority: nil , isChildTask: true , copyTaskLocals: false ,
396
397
inheritContext: false , enqueueJob: true ,
397
- addPendingGroupTaskUnconditionally: false
398
- )
398
+ addPendingGroupTaskUnconditionally: false ,
399
+ isDiscardingTask : false )
399
400
400
401
// Create the task in this group.
401
402
_ = Builtin . createAsyncTaskInGroup ( flags, _group, operation)
@@ -682,7 +683,8 @@ public struct ThrowingTaskGroup<ChildTaskResult: Sendable, Failure: Error> {
682
683
let flags = taskCreateFlags (
683
684
priority: priority, isChildTask: true , copyTaskLocals: false ,
684
685
inheritContext: false , enqueueJob: true ,
685
- addPendingGroupTaskUnconditionally: true
686
+ addPendingGroupTaskUnconditionally: true ,
687
+ isDiscardingTask: false
686
688
)
687
689
688
690
// Create the task in this group.
@@ -720,8 +722,8 @@ public struct ThrowingTaskGroup<ChildTaskResult: Sendable, Failure: Error> {
720
722
let flags = taskCreateFlags (
721
723
priority: priority, isChildTask: true , copyTaskLocals: false ,
722
724
inheritContext: false , enqueueJob: true ,
723
- addPendingGroupTaskUnconditionally: false
724
- )
725
+ addPendingGroupTaskUnconditionally: false ,
726
+ isDiscardingTask : false )
725
727
726
728
// Create the task in this group.
727
729
_ = Builtin . createAsyncTaskInGroup ( flags, _group, operation)
@@ -756,8 +758,8 @@ public struct ThrowingTaskGroup<ChildTaskResult: Sendable, Failure: Error> {
756
758
let flags = taskCreateFlags (
757
759
priority: nil , isChildTask: true , copyTaskLocals: false ,
758
760
inheritContext: false , enqueueJob: true ,
759
- addPendingGroupTaskUnconditionally: true
760
- )
761
+ addPendingGroupTaskUnconditionally: true ,
762
+ isDiscardingTask : false )
761
763
762
764
// Create the task in this group.
763
765
_ = Builtin . createAsyncTaskInGroup ( flags, _group, operation)
@@ -799,8 +801,8 @@ public struct ThrowingTaskGroup<ChildTaskResult: Sendable, Failure: Error> {
799
801
let flags = taskCreateFlags (
800
802
priority: nil , isChildTask: true , copyTaskLocals: false ,
801
803
inheritContext: false , enqueueJob: true ,
802
- addPendingGroupTaskUnconditionally: false
803
- )
804
+ addPendingGroupTaskUnconditionally: false ,
805
+ isDiscardingTask : false )
804
806
805
807
// Create the task in this group.
806
808
_ = Builtin . createAsyncTaskInGroup ( flags, _group, operation)
0 commit comments