Skip to content

Commit 6b3f44a

Browse files
authored
Add availability requirements to NIOAsyncSequenceProducer extension (#2236)
Motivation: One of the `NIOAsyncSequenceProducer` extensions was missing a availability requirements. Modifications: Add missing requirement. Result: Fewer bugs.
1 parent dd40215 commit 6b3f44a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/NIOCore/AsyncSequences/NIOAsyncSequenceProducer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,6 +1068,7 @@ extension NIOAsyncSequenceProducer {
10681068

10691069
/// The ``NIOAsyncSequenceProducer/AsyncIterator`` MUST NOT be shared across `Task`s. With marking this as
10701070
/// unavailable we are explicitly declaring this.
1071+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
10711072
@available(*, unavailable)
10721073
extension NIOAsyncSequenceProducer.AsyncIterator: Sendable {}
10731074
#endif

0 commit comments

Comments
 (0)