@@ -114,7 +114,7 @@ public struct NIOThrowingAsyncSequenceProducer<
114
114
115
115
return . init( source: source, sequence: sequence)
116
116
}
117
-
117
+
118
118
/// Initializes a new ``NIOThrowingAsyncSequenceProducer`` and a ``NIOThrowingAsyncSequenceProducer/Source``.
119
119
///
120
120
/// - Important: This method returns a struct containing a ``NIOThrowingAsyncSequenceProducer/Source`` and
@@ -229,7 +229,7 @@ extension NIOThrowingAsyncSequenceProducer {
229
229
///
230
230
/// - Note: This struct has reference semantics. Once all copies of a source have been dropped ``NIOThrowingAsyncSequenceProducer/Source/finish()``.
231
231
/// This will resume any suspended continuation.
232
- public struct Source : Sendable {
232
+ public struct Source {
233
233
/// This class is needed to hook the deinit to observe once all references to the ``NIOThrowingAsyncSequenceProducer/Source`` are dropped.
234
234
///
235
235
/// - Important: This is safe to be unchecked ``Sendable`` since the `storage` is ``Sendable`` and `immutable`.
@@ -573,7 +573,7 @@ extension NIOThrowingAsyncSequenceProducer {
573
573
} else {
574
574
continuation. resume ( returning: nil )
575
575
}
576
-
576
+
577
577
let delegate = self . _delegate
578
578
self . _delegate = nil
579
579
@@ -966,7 +966,7 @@ extension NIOThrowingAsyncSequenceProducer {
966
966
switch self . _state {
967
967
case . initial( _, let iteratorInitialized) :
968
968
// This can happen if the `Task` that calls `next()` is already cancelled.
969
-
969
+
970
970
// We have deprecated the generic Failure type in the public API and Failure should
971
971
// now be `Swift.Error`. However, if users have not migrated to the new API they could
972
972
// still use a custom generic Error type and this cast might fail.
@@ -984,7 +984,7 @@ extension NIOThrowingAsyncSequenceProducer {
984
984
} else {
985
985
self . _state = . finished( iteratorInitialized: iteratorInitialized)
986
986
}
987
-
987
+
988
988
return . none
989
989
990
990
case . streaming( _, _, . some( let continuation) , _, let iteratorInitialized) :
@@ -1170,3 +1170,6 @@ extension NIOThrowingAsyncSequenceProducer {
1170
1170
@available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
1171
1171
@available ( * , unavailable)
1172
1172
extension NIOThrowingAsyncSequenceProducer . AsyncIterator : Sendable { }
1173
+
1174
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
1175
+ extension NIOThrowingAsyncSequenceProducer . Source : Sendable { }
0 commit comments