From 188a38b6111a61e854c235ad6f4dce5f3f0b6efc Mon Sep 17 00:00:00 2001 From: soumyamahunt Date: Mon, 1 May 2023 10:16:36 +0530 Subject: [PATCH] wip: add condition on `DiscardingTaskGroup` usage --- .../AsyncObjects/CancellationSource/CancellationSource.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/AsyncObjects/CancellationSource/CancellationSource.swift b/Sources/AsyncObjects/CancellationSource/CancellationSource.swift index 0ecf636..51ea28b 100644 --- a/Sources/AsyncObjects/CancellationSource/CancellationSource.swift +++ b/Sources/AsyncObjects/CancellationSource/CancellationSource.swift @@ -91,7 +91,7 @@ public struct CancellationSource: AsyncObject, Cancellable, Loggable { } } - #if swift(>=5.8) + #if swift(>=5.9) if #available(macOS 13.3, iOS 16.4, tvOS 16.4, watchOS 9.4, *) { self.lifetime = Task.detached { await withDiscardingTaskGroup { group in