浏览代码

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.
Franz Busch 6 月之前
父节点
当前提交
7733a8e2de
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Sources/GRPCNIOTransportCore/Internal/ConstantAsyncSequence.swift

+ 1 - 0
Sources/GRPCNIOTransportCore/Internal/ConstantAsyncSequence.swift

@@ -16,6 +16,7 @@
 
 internal import GRPCCore
 
+@available(gRPCSwiftNIOTransport 1.0, *)
 private struct ConstantAsyncSequence<Element: Sendable>: AsyncSequence, Sendable {
   private let element: Element