@@ -273,7 +273,7 @@ public final class ConnectionPool<
273273
274274 public func run( ) async {
275275 await withTaskCancellationHandler {
276- #if swift(>=5.8) && os(Linux) || swift (>=5.9)
276+ #if os(Linux) || compiler (>=5.9)
277277 if #available( macOS 14 . 0 , iOS 17 . 0 , tvOS 17 . 0 , watchOS 10 . 0 , * ) {
278278 return await withDiscardingTaskGroup ( ) { taskGroup in
279279 await self . run ( in: & taskGroup)
@@ -313,7 +313,7 @@ public final class ConnectionPool<
313313 case scheduleTimer( StateMachine . Timer )
314314 }
315315
316- #if swift(>=5.8) && os(Linux) || swift (>=5.9)
316+ #if os(Linux) || compiler (>=5.9)
317317 @available ( macOS 14 . 0 , iOS 17 . 0 , tvOS 17 . 0 , watchOS 10 . 0 , * )
318318 private func run( in taskGroup: inout DiscardingTaskGroup ) async {
319319 for await event in self . eventStream {
@@ -507,7 +507,7 @@ public final class ConnectionPool<
507507 await withTaskGroup ( of: TimerRunResult . self, returning: Void . self) { taskGroup in
508508 taskGroup. addTask {
509509 do {
510- #if swift(>=5.8) && os(Linux) || swift (>=5.9)
510+ #if os(Linux) || compiler (>=5.9)
511511 try await self . clock. sleep ( for: timer. duration)
512512 #else
513513 try await self . clock. sleep ( until: self . clock. now. advanced ( by: timer. duration) , tolerance: nil )
@@ -593,7 +593,7 @@ protocol TaskGroupProtocol {
593593 mutating func addTask_( operation: @escaping @Sendable ( ) async -> Void )
594594}
595595
596- #if swift(>=5.8) && os(Linux) || swift(>=5.9)
596+ #if os(Linux) || swift(>=5.9)
597597@available ( macOS 14 . 0 , iOS 17 . 0 , tvOS 17 . 0 , watchOS 10 . 0 , * )
598598extension DiscardingTaskGroup : TaskGroupProtocol {
599599 @inlinable
0 commit comments