Skip to content

Commit 7733a8e

Browse files
authored
Add availability to ConstantAsyncSequence (#107)
We were running into build issues like this > grpc-swift-nio-transport/Sources/GRPCNIOTransportCore/Internal/ConstantAsyncSequence.swift:37:17: error: concurrency is only available in macOS 10.15.0 or newer when building this package on macOS. It looks like there is just a missing availability annotation.
1 parent e726e36 commit 7733a8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/GRPCNIOTransportCore/Internal/ConstantAsyncSequence.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
internal import GRPCCore
1818

19+
@available(gRPCSwiftNIOTransport 1.0, *)
1920
private struct ConstantAsyncSequence<Element: Sendable>: AsyncSequence, Sendable {
2021
private let element: Element
2122

0 commit comments

Comments
 (0)