@@ -75,7 +75,6 @@ public func withDiscardingTaskGroup<GroupResult>(
7575 isolation: isolated ( any Actor ) ? = #isolation,
7676 body: ( inout DiscardingTaskGroup ) async -> GroupResult
7777) async -> GroupResult {
78- #if compiler(>=5.5) && $BuiltinCreateTaskGroupWithFlags
7978 let flags = taskGroupCreateFlags (
8079 discardResults: true
8180 )
@@ -89,9 +88,6 @@ public func withDiscardingTaskGroup<GroupResult>(
8988 try ! await group. awaitAllRemainingTasks ( ) // try!-safe, cannot throw since this is a non throwing group
9089
9190 return result
92- #else
93- fatalError ( " Swift compiler is incompatible with this SDK version " )
94- #endif
9591}
9692
9793@available ( SwiftStdlib 5 . 9 , * )
@@ -102,7 +98,6 @@ internal func __abi_withDiscardingTaskGroup<GroupResult>(
10298 returning returnType: GroupResult . Type = GroupResult . self,
10399 body: ( inout DiscardingTaskGroup ) async -> GroupResult
104100) async -> GroupResult {
105- #if compiler(>=5.5) && $BuiltinCreateTaskGroupWithFlags
106101 let flags = taskGroupCreateFlags (
107102 discardResults: true
108103 )
@@ -116,9 +111,6 @@ internal func __abi_withDiscardingTaskGroup<GroupResult>(
116111 try ! await group. awaitAllRemainingTasks ( ) // try!-safe, cannot throw since this is a non throwing group
117112
118113 return result
119- #else
120- fatalError ( " Swift compiler is incompatible with this SDK version " )
121- #endif
122114}
123115
124116/// A discarding group that contains dynamically created child tasks.
@@ -632,7 +624,6 @@ public func withThrowingDiscardingTaskGroup<GroupResult>(
632624 isolation: isolated ( any Actor ) ? = #isolation,
633625 body: ( inout ThrowingDiscardingTaskGroup < Error > ) async throws -> GroupResult
634626) async throws -> GroupResult {
635- #if compiler(>=5.5) && $BuiltinCreateTaskGroupWithFlags
636627 let flags = taskGroupCreateFlags (
637628 discardResults: true
638629 )
@@ -655,9 +646,6 @@ public func withThrowingDiscardingTaskGroup<GroupResult>(
655646 try await group. awaitAllRemainingTasks ( bodyError: nil )
656647
657648 return result
658- #else
659- fatalError ( " Swift compiler is incompatible with this SDK version " )
660- #endif
661649}
662650
663651@available ( SwiftStdlib 5 . 9 , * )
@@ -668,7 +656,6 @@ internal func __abi_withThrowingDiscardingTaskGroup<GroupResult>(
668656 returning returnType: GroupResult . Type = GroupResult . self,
669657 body: ( inout ThrowingDiscardingTaskGroup < Error > ) async throws -> GroupResult
670658) async throws -> GroupResult {
671- #if compiler(>=5.5) && $BuiltinCreateTaskGroupWithFlags
672659 let flags = taskGroupCreateFlags (
673660 discardResults: true
674661 )
@@ -691,9 +678,6 @@ internal func __abi_withThrowingDiscardingTaskGroup<GroupResult>(
691678 try await group. awaitAllRemainingTasks ( bodyError: nil )
692679
693680 return result
694- #else
695- fatalError ( " Swift compiler is incompatible with this SDK version " )
696- #endif
697681}
698682
699683
0 commit comments