@@ -223,7 +223,7 @@ extension DiscardingTaskGroup {
223
223
priority: TaskPriority ? = nil ,
224
224
operation: __owned @Sendable @escaping ( ) async throws -> Void
225
225
) {
226
- #if $BuiltinCreateAsyncTaskInGroupWithExecutor
226
+ #if $BuiltinCreateAsyncDiscardingTaskInGroupWithExecutor
227
227
let flags = taskCreateFlags (
228
228
priority: priority, isChildTask: true , copyTaskLocals: false ,
229
229
inheritContext: false , enqueueJob: true ,
@@ -265,7 +265,7 @@ extension DiscardingTaskGroup {
265
265
priority: TaskPriority ? = nil ,
266
266
operation: __owned @Sendable @escaping ( ) async -> Void
267
267
) -> Bool {
268
- #if $BuiltinCreateAsyncTaskInGroupWithExecutor
268
+ #if $BuiltinCreateAsyncDiscardingTaskInGroupWithExecutor
269
269
let canAdd = _taskGroupAddPendingTask ( group: _group, unconditionally: false )
270
270
271
271
guard canAdd else {
@@ -317,7 +317,7 @@ extension ThrowingDiscardingTaskGroup {
317
317
priority: TaskPriority ? = nil ,
318
318
operation: __owned @Sendable @escaping ( ) async throws -> Void
319
319
) {
320
- #if $BuiltinCreateAsyncTaskInGroupWithExecutor
320
+ #if $BuiltinCreateAsyncDiscardingTaskInGroupWithExecutor
321
321
let flags = taskCreateFlags (
322
322
priority: priority, isChildTask: true , copyTaskLocals: false ,
323
323
inheritContext: false , enqueueJob: true ,
@@ -359,7 +359,7 @@ extension ThrowingDiscardingTaskGroup {
359
359
priority: TaskPriority ? = nil ,
360
360
operation: __owned @Sendable @escaping ( ) async throws -> Void
361
361
) -> Bool {
362
- #if $BuiltinCreateAsyncTaskInGroupWithExecutor
362
+ #if $BuiltinCreateAsyncDiscardingTaskInGroupWithExecutor
363
363
let canAdd = _taskGroupAddPendingTask ( group: _group, unconditionally: false )
364
364
365
365
guard canAdd else {
@@ -388,4 +388,4 @@ extension ThrowingDiscardingTaskGroup {
388
388
}
389
389
}
390
390
391
- #endif
391
+ #endif
0 commit comments