@@ -40,7 +40,6 @@ extension TaskGroup {
40
40
guard let taskExecutor else {
41
41
return self . addTask ( priority: priority, operation: operation)
42
42
}
43
- #if $BuiltinCreateAsyncTaskInGroupWithExecutor
44
43
let flags = taskCreateFlags (
45
44
priority: priority, isChildTask: true , copyTaskLocals: false ,
46
45
inheritContext: false , enqueueJob: true ,
@@ -60,9 +59,6 @@ extension TaskGroup {
60
59
#else
61
60
_ = Builtin . createAsyncTaskInGroupWithExecutor ( flags, _group, executorBuiltin, operation)
62
61
#endif
63
- #else
64
- fatalError ( " Unsupported Swift compiler " )
65
- #endif
66
62
}
67
63
68
64
/// 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 {
89
85
guard let taskExecutor else {
90
86
return self . addTaskUnlessCancelled ( priority: priority, operation: operation)
91
87
}
92
- #if $BuiltinCreateAsyncTaskInGroupWithExecutor
93
88
let canAdd = _taskGroupAddPendingTask ( group: _group, unconditionally: false )
94
89
95
90
guard canAdd else {
@@ -116,9 +111,6 @@ extension TaskGroup {
116
111
_ = Builtin . createAsyncTaskInGroupWithExecutor ( flags, _group, executorBuiltin, operation)
117
112
#endif
118
113
return true
119
- #else
120
- fatalError ( " Unsupported Swift compiler " )
121
- #endif
122
114
}
123
115
}
124
116
@@ -149,7 +141,6 @@ extension ThrowingTaskGroup {
149
141
guard let taskExecutor else {
150
142
return self . addTask ( priority: priority, operation: operation)
151
143
}
152
- #if $BuiltinCreateAsyncTaskInGroupWithExecutor
153
144
let flags = taskCreateFlags (
154
145
priority: priority, isChildTask: true , copyTaskLocals: false ,
155
146
inheritContext: false , enqueueJob: true ,
@@ -169,9 +160,6 @@ extension ThrowingTaskGroup {
169
160
#else
170
161
_ = Builtin . createAsyncTaskInGroupWithExecutor ( flags, _group, executorBuiltin, operation)
171
162
#endif
172
- #else
173
- fatalError ( " Unsupported Swift compiler " )
174
- #endif
175
163
}
176
164
177
165
/// 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 {
194
182
guard let taskExecutor else {
195
183
return self . addTaskUnlessCancelled ( priority: priority, operation: operation)
196
184
}
197
- #if $BuiltinCreateAsyncTaskInGroupWithExecutor
198
185
let canAdd = _taskGroupAddPendingTask ( group: _group, unconditionally: false )
199
186
200
187
guard canAdd else {
@@ -221,9 +208,6 @@ extension ThrowingTaskGroup {
221
208
_ = Builtin . createAsyncTaskInGroupWithExecutor ( flags, _group, executorBuiltin, operation)
222
209
#endif
223
210
return true
224
- #else
225
- fatalError ( " Unsupported Swift compiler " )
226
- #endif
227
211
}
228
212
}
229
213
0 commit comments