@@ -223,17 +223,13 @@ public struct DiscardingTaskGroup {
223223#endif
224224
225225 // Create the task in this group.
226- #if $BuiltinCreateTask
227226 let builtinSerialExecutor =
228227 Builtin . extractFunctionIsolation ( operation) ? . unownedExecutor. executor
229228
230229 _ = Builtin . createDiscardingTask ( flags: flags,
231230 initialSerialExecutor: builtinSerialExecutor,
232231 taskGroup: _group,
233232 operation: operation)
234- #else
235- _ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
236- #endif
237233 }
238234
239235 /// Adds a child task to the group, unless the group has been canceled.
@@ -275,17 +271,13 @@ public struct DiscardingTaskGroup {
275271#endif
276272
277273 // Create the task in this group.
278- #if $BuiltinCreateTask
279274 let builtinSerialExecutor =
280275 Builtin . extractFunctionIsolation ( operation) ? . unownedExecutor. executor
281276
282277 _ = Builtin . createDiscardingTask ( flags: flags,
283278 initialSerialExecutor: builtinSerialExecutor,
284279 taskGroup: _group,
285280 operation: operation)
286- #else
287- _ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
288- #endif
289281
290282 return true
291283 }
@@ -302,17 +294,13 @@ public struct DiscardingTaskGroup {
302294 )
303295
304296 // Create the task in this group.
305- #if $BuiltinCreateTask
306297 let builtinSerialExecutor =
307298 Builtin . extractFunctionIsolation ( operation) ? . unownedExecutor. executor
308299
309300 _ = Builtin . createDiscardingTask ( flags: flags,
310301 initialSerialExecutor: builtinSerialExecutor,
311302 taskGroup: _group,
312303 operation: operation)
313- #else
314- _ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
315- #endif
316304 }
317305
318306 /// Adds a child task to the group, unless the group has been canceled.
@@ -344,17 +332,13 @@ public struct DiscardingTaskGroup {
344332 )
345333
346334 // Create the task in this group.
347- #if $BuiltinCreateTask
348335 let builtinSerialExecutor =
349336 Builtin . extractFunctionIsolation ( operation) ? . unownedExecutor. executor
350337
351338 _ = Builtin . createDiscardingTask ( flags: flags,
352339 initialSerialExecutor: builtinSerialExecutor,
353340 taskGroup: _group,
354341 operation: operation)
355- #else
356- _ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
357- #endif
358342
359343 return true
360344#else
@@ -809,17 +793,13 @@ public struct ThrowingDiscardingTaskGroup<Failure: Error> {
809793 )
810794
811795 // Create the task in this group.
812- #if $BuiltinCreateTask
813796 let builtinSerialExecutor =
814797 Builtin . extractFunctionIsolation ( operation) ? . unownedExecutor. executor
815798
816799 _ = Builtin . createDiscardingTask ( flags: flags,
817800 initialSerialExecutor: builtinSerialExecutor,
818801 taskGroup: _group,
819802 operation: operation)
820- #else
821- _ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
822- #endif
823803#else
824804 fatalError ( " Unsupported Swift compiler " )
825805#endif
@@ -849,17 +829,13 @@ public struct ThrowingDiscardingTaskGroup<Failure: Error> {
849829 )
850830
851831 // Create the task in this group.
852- #if $BuiltinCreateTask
853832 let builtinSerialExecutor =
854833 Builtin . extractFunctionIsolation ( operation) ? . unownedExecutor. executor
855834
856835 _ = Builtin . createDiscardingTask ( flags: flags,
857836 initialSerialExecutor: builtinSerialExecutor,
858837 taskGroup: _group,
859838 operation: operation)
860- #else
861- _ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
862- #endif
863839
864840 return true
865841#else
0 commit comments