@@ -40,7 +40,6 @@ extension TaskGroup {
4040 guard let taskExecutor else {
4141 return self . addTask ( priority: priority, operation: operation)
4242 }
43- #if $BuiltinCreateAsyncTaskInGroupWithExecutor
4443 let flags = taskCreateFlags (
4544 priority: priority, isChildTask: true , copyTaskLocals: false ,
4645 inheritContext: false , enqueueJob: true ,
@@ -60,9 +59,6 @@ extension TaskGroup {
6059 #else
6160 _ = Builtin . createAsyncTaskInGroupWithExecutor ( flags, _group, executorBuiltin, operation)
6261 #endif
63- #else
64- fatalError ( " Unsupported Swift compiler " )
65- #endif
6662 }
6763
6864 /// Adds a child task to the group and enqueue it on the specified executor, unless the group has been canceled.
@@ -89,7 +85,6 @@ extension TaskGroup {
8985 guard let taskExecutor else {
9086 return self . addTaskUnlessCancelled ( priority: priority, operation: operation)
9187 }
92- #if $BuiltinCreateAsyncTaskInGroupWithExecutor
9388 let canAdd = _taskGroupAddPendingTask ( group: _group, unconditionally: false )
9489
9590 guard canAdd else {
@@ -116,9 +111,6 @@ extension TaskGroup {
116111 _ = Builtin . createAsyncTaskInGroupWithExecutor ( flags, _group, executorBuiltin, operation)
117112 #endif
118113 return true
119- #else
120- fatalError ( " Unsupported Swift compiler " )
121- #endif
122114 }
123115}
124116
@@ -149,7 +141,6 @@ extension ThrowingTaskGroup {
149141 guard let taskExecutor else {
150142 return self . addTask ( priority: priority, operation: operation)
151143 }
152- #if $BuiltinCreateAsyncTaskInGroupWithExecutor
153144 let flags = taskCreateFlags (
154145 priority: priority, isChildTask: true , copyTaskLocals: false ,
155146 inheritContext: false , enqueueJob: true ,
@@ -169,9 +160,6 @@ extension ThrowingTaskGroup {
169160 #else
170161 _ = Builtin . createAsyncTaskInGroupWithExecutor ( flags, _group, executorBuiltin, operation)
171162 #endif
172- #else
173- fatalError ( " Unsupported Swift compiler " )
174- #endif
175163 }
176164
177165 /// Adds a child task to the group and enqueue it on the specified executor, unless the group has been canceled.
@@ -194,7 +182,6 @@ extension ThrowingTaskGroup {
194182 guard let taskExecutor else {
195183 return self . addTaskUnlessCancelled ( priority: priority, operation: operation)
196184 }
197- #if $BuiltinCreateAsyncTaskInGroupWithExecutor
198185 let canAdd = _taskGroupAddPendingTask ( group: _group, unconditionally: false )
199186
200187 guard canAdd else {
@@ -221,9 +208,6 @@ extension ThrowingTaskGroup {
221208 _ = Builtin . createAsyncTaskInGroupWithExecutor ( flags, _group, executorBuiltin, operation)
222209 #endif
223210 return true
224- #else
225- fatalError ( " Unsupported Swift compiler " )
226- #endif
227211 }
228212}
229213
0 commit comments