Skip to content

Commit ac27495

Browse files
authored
add concurrency avail guard to AsyncSequenceOfOne (#1671)
Motivation: Building fails with ``` error: concurrency is only available in macOS 10.15.0 or newer ``` Modifications: Add an availability guard to `AsyncSequenceOfOne` Result: Code will build.
1 parent 69dafd8 commit ac27495

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/GRPCCore/Stream/AsyncSequenceOfOne.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ extension RPCAsyncSequence {
3030
}
3131

3232
/// An `AsyncSequence` of a single value.
33+
@available(macOS 10.15, iOS 13.0, tvOS 13, watchOS 6, *)
3334
private struct AsyncSequenceOfOne<Element: Sendable, Failure: Error>: AsyncSequence {
3435
private let result: Result<Element, Failure>
3536

0 commit comments

Comments
 (0)