From 622ce440f90d79b58e45f3a3efdd64c51d1dfd17 Mon Sep 17 00:00:00 2001 From: AntVil <56440776+AntVil@users.noreply.github.com> Date: Mon, 11 Dec 2023 17:24:04 +0100 Subject: [PATCH] fix AsyncStream polyfill swift<5.9 (#101) --- Sources/RediStack/Cluster/SwiftPolyfill.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/RediStack/Cluster/SwiftPolyfill.swift b/Sources/RediStack/Cluster/SwiftPolyfill.swift index 31e01bf..970e885 100644 --- a/Sources/RediStack/Cluster/SwiftPolyfill.swift +++ b/Sources/RediStack/Cluster/SwiftPolyfill.swift @@ -36,6 +36,7 @@ extension DiscardingTaskGroup: DiscardingTaskGroupProtocol {} #if swift(<5.9) // This should be removed once we support Swift 5.9+ only +@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) extension AsyncStream { static func makeStream( of elementType: Element.Type = Element.self,