@@ -231,19 +231,8 @@ public struct DiscardingTaskGroup {
231
231
initialSerialExecutor: builtinSerialExecutor,
232
232
taskGroup: _group,
233
233
operation: operation)
234
- #elseif $BuiltinCreateAsyncDiscardingTaskInGroup
235
- _ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
236
234
#else
237
- // This builtin happens to work, but the signature of the operation is
238
- // incorrect, as the discarding group uses Void, and therefore has less
239
- // generic parameters than the operation expected to be passed to
240
- // createAsyncTaskInGroup. While this happened to work on some platforms,
241
- // on others this causes issues, e.g. on wasm;
242
- //
243
- // Keep this branch for compatibility with old compilers, but use the
244
- // correct 'createAsyncDiscardingTaskInGroup' when available (and a recent
245
- // enough compiler is used).
246
- _ = Builtin . createAsyncTaskInGroup ( flags, _group, operation)
235
+ _ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
247
236
#endif
248
237
}
249
238
@@ -294,19 +283,8 @@ public struct DiscardingTaskGroup {
294
283
initialSerialExecutor: builtinSerialExecutor,
295
284
taskGroup: _group,
296
285
operation: operation)
297
- #elseif $BuiltinCreateAsyncDiscardingTaskInGroup
298
- _ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
299
286
#else
300
- // This builtin happens to work, but the signature of the operation is
301
- // incorrect, as the discarding group uses Void, and therefore has less
302
- // generic parameters than the operation expected to be passed to
303
- // createAsyncTaskInGroup. While this happened to work on some platforms,
304
- // on others this causes issues, e.g. on wasm;
305
- //
306
- // Keep this branch for compatibility with old compilers, but use the
307
- // correct 'createAsyncDiscardingTaskInGroup' when available (and a recent
308
- // enough compiler is used).
309
- _ = Builtin . createAsyncTaskInGroup ( flags, _group, operation)
287
+ _ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
310
288
#endif
311
289
312
290
return true
@@ -332,19 +310,8 @@ public struct DiscardingTaskGroup {
332
310
initialSerialExecutor: builtinSerialExecutor,
333
311
taskGroup: _group,
334
312
operation: operation)
335
- #elseif $BuiltinCreateAsyncDiscardingTaskInGroup
336
- _ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
337
313
#else
338
- // This builtin happens to work, but the signature of the operation is
339
- // incorrect, as the discarding group uses Void, and therefore has less
340
- // generic parameters than the operation expected to be passed to
341
- // createAsyncTaskInGroup. While this happened to work on some platforms,
342
- // on others this causes issues, e.g. on wasm;
343
- //
344
- // Keep this branch for compatibility with old compilers, but use the
345
- // correct 'createAsyncDiscardingTaskInGroup' when available (and a recent
346
- // enough compiler is used).
347
- _ = Builtin . createAsyncTaskInGroup ( flags, _group, operation)
314
+ _ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
348
315
#endif
349
316
}
350
317
@@ -385,19 +352,8 @@ public struct DiscardingTaskGroup {
385
352
initialSerialExecutor: builtinSerialExecutor,
386
353
taskGroup: _group,
387
354
operation: operation)
388
- #elseif $BuiltinCreateAsyncDiscardingTaskInGroup
389
- _ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
390
355
#else
391
- // This builtin happens to work, but the signature of the operation is
392
- // incorrect, as the discarding group uses Void, and therefore has less
393
- // generic parameters than the operation expected to be passed to
394
- // createAsyncTaskInGroup. While this happened to work on some platforms,
395
- // on others this causes issues, e.g. on wasm;
396
- //
397
- // Keep this branch for compatibility with old compilers, but use the
398
- // correct 'createAsyncDiscardingTaskInGroup' when available (and a recent
399
- // enough compiler is used).
400
- _ = Builtin . createAsyncTaskInGroup ( flags, _group, operation)
356
+ _ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
401
357
#endif
402
358
403
359
return true
@@ -439,20 +395,7 @@ public struct DiscardingTaskGroup {
439
395
#endif
440
396
441
397
// Create the task in this group.
442
- #if $BuiltinCreateAsyncDiscardingTaskInGroup
443
398
_ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
444
- #else
445
- // This builtin happens to work, but the signature of the operation is
446
- // incorrect, as the discarding group uses Void, and therefore has less
447
- // generic parameters than the operation expected to be passed to
448
- // createAsyncTaskInGroup. While this happened to work on some platforms,
449
- // on others this causes issues, e.g. on wasm;
450
- //
451
- // Keep this branch for compatibility with old compilers, but use the
452
- // correct 'createAsyncDiscardingTaskInGroup' when available (and a recent
453
- // enough compiler is used).
454
- _ = Builtin . createAsyncTaskInGroup ( flags, _group, operation)
455
- #endif
456
399
}
457
400
458
401
/// Adds a child task to the group, unless the group has been canceled.
@@ -493,20 +436,7 @@ public struct DiscardingTaskGroup {
493
436
#endif
494
437
495
438
// Create the task in this group.
496
- #if $BuiltinCreateAsyncDiscardingTaskInGroup
497
439
_ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
498
- #else
499
- // This builtin happens to work, but the signature of the operation is
500
- // incorrect, as the discarding group uses Void, and therefore has less
501
- // generic parameters than the operation expected to be passed to
502
- // createAsyncTaskInGroup. While this happened to work on some platforms,
503
- // on others this causes issues, e.g. on wasm;
504
- //
505
- // Keep this branch for compatibility with old compilers, but use the
506
- // correct 'createAsyncDiscardingTaskInGroup' when available (and a recent
507
- // enough compiler is used).
508
- _ = Builtin . createAsyncTaskInGroup ( flags, _group, operation)
509
- #endif
510
440
511
441
return true
512
442
}
@@ -522,20 +452,7 @@ public struct DiscardingTaskGroup {
522
452
)
523
453
524
454
// Create the task in this group.
525
- #if $BuiltinCreateAsyncDiscardingTaskInGroup
526
455
_ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
527
- #else
528
- // This builtin happens to work, but the signature of the operation is
529
- // incorrect, as the discarding group uses Void, and therefore has less
530
- // generic parameters than the operation expected to be passed to
531
- // createAsyncTaskInGroup. While this happened to work on some platforms,
532
- // on others this causes issues, e.g. on wasm;
533
- //
534
- // Keep this branch for compatibility with old compilers, but use the
535
- // correct 'createAsyncDiscardingTaskInGroup' when available (and a recent
536
- // enough compiler is used).
537
- _ = Builtin . createAsyncTaskInGroup ( flags, _group, operation)
538
- #endif
539
456
}
540
457
541
458
/// Adds a child task to the group, unless the group has been canceled.
@@ -566,20 +483,7 @@ public struct DiscardingTaskGroup {
566
483
)
567
484
568
485
// Create the task in this group.
569
- #if $BuiltinCreateAsyncDiscardingTaskInGroup
570
486
_ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
571
- #else
572
- // This builtin happens to work, but the signature of the operation is
573
- // incorrect, as the discarding group uses Void, and therefore has less
574
- // generic parameters than the operation expected to be passed to
575
- // createAsyncTaskInGroup. While this happened to work on some platforms,
576
- // on others this causes issues, e.g. on wasm;
577
- //
578
- // Keep this branch for compatibility with old compilers, but use the
579
- // correct 'createAsyncDiscardingTaskInGroup' when available (and a recent
580
- // enough compiler is used).
581
- _ = Builtin . createAsyncTaskInGroup ( flags, _group, operation)
582
- #endif
583
487
584
488
return true
585
489
#else
@@ -913,19 +817,8 @@ public struct ThrowingDiscardingTaskGroup<Failure: Error> {
913
817
initialSerialExecutor: builtinSerialExecutor,
914
818
taskGroup: _group,
915
819
operation: operation)
916
- #elseif $BuiltinCreateAsyncDiscardingTaskInGroup
917
- _ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
918
820
#else
919
- // This builtin happens to work, but the signature of the operation is
920
- // incorrect, as the discarding group uses Void, and therefore has less
921
- // generic parameters than the operation expected to be passed to
922
- // createAsyncTaskInGroup. While this happened to work on some platforms,
923
- // on others this causes issues, e.g. on wasm;
924
- //
925
- // Keep this branch for compatibility with old compilers, but use the
926
- // correct 'createAsyncDiscardingTaskInGroup' when available (and a recent
927
- // enough compiler is used).
928
- _ = Builtin . createAsyncTaskInGroup ( flags, _group, operation)
821
+ _ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
929
822
#endif
930
823
#else
931
824
fatalError ( " Unsupported Swift compiler " )
@@ -964,19 +857,8 @@ public struct ThrowingDiscardingTaskGroup<Failure: Error> {
964
857
initialSerialExecutor: builtinSerialExecutor,
965
858
taskGroup: _group,
966
859
operation: operation)
967
- #elseif $BuiltinCreateAsyncDiscardingTaskInGroup
968
- _ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
969
860
#else
970
- // This builtin happens to work, but the signature of the operation is
971
- // incorrect, as the discarding group uses Void, and therefore has less
972
- // generic parameters than the operation expected to be passed to
973
- // createAsyncTaskInGroup. While this happened to work on some platforms,
974
- // on others this causes issues, e.g. on wasm;
975
- //
976
- // Keep this branch for compatibility with old compilers, but use the
977
- // correct 'createAsyncDiscardingTaskInGroup' when available (and a recent
978
- // enough compiler is used).
979
- _ = Builtin . createAsyncTaskInGroup ( flags, _group, operation)
861
+ _ = Builtin . createAsyncDiscardingTaskInGroup ( flags, _group, operation)
980
862
#endif
981
863
982
864
return true
0 commit comments