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.
This commit is contained in:
George Barnett 2022-08-08 11:05:58 +01:00 committed by GitHub
parent dd40215fd4
commit 6b3f44a43f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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