File tree 2 files changed +18
-4
lines changed
2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,10 @@ extension AsyncStream {
71
71
}
72
72
}
73
73
74
- @available ( * , deprecated, message: " Explicitly wrap the given async sequence with 'UncheckedSendable' first. " )
74
+ @available (
75
+ * , deprecated,
76
+ message: " Explicitly wrap the given async sequence with 'UncheckedSendable' first. "
77
+ )
75
78
@_disfavoredOverload
76
79
public init < S: AsyncSequence > ( _ sequence: S ) where S. Element == Element {
77
80
self . init ( UncheckedSendable ( sequence) )
@@ -101,7 +104,11 @@ extension AsyncSequence {
101
104
AsyncStream ( self )
102
105
}
103
106
104
- @available ( * , deprecated, message: " Explicitly wrap this async sequence with 'UncheckedSendable' before erasing to stream. " )
107
+ @available (
108
+ * , deprecated,
109
+ message:
110
+ " Explicitly wrap this async sequence with 'UncheckedSendable' before erasing to stream. "
111
+ )
105
112
public func eraseToStream( ) -> AsyncStream < Element > {
106
113
AsyncStream ( UncheckedSendable ( self ) )
107
114
}
Original file line number Diff line number Diff line change @@ -26,7 +26,10 @@ extension AsyncThrowingStream where Failure == Error {
26
26
}
27
27
}
28
28
29
- @available ( * , deprecated, message: " Explicitly wrap the given async sequence with 'UncheckedSendable' first. " )
29
+ @available (
30
+ * , deprecated,
31
+ message: " Explicitly wrap the given async sequence with 'UncheckedSendable' first. "
32
+ )
30
33
@_disfavoredOverload
31
34
public init < S: AsyncSequence > ( _ sequence: S ) where S. Element == Element {
32
35
self . init ( UncheckedSendable ( sequence) )
@@ -60,7 +63,11 @@ extension AsyncSequence {
60
63
AsyncThrowingStream ( self )
61
64
}
62
65
63
- @available ( * , deprecated, message: " Explicitly wrap this async sequence with 'UncheckedSendable' before erasing to throwing stream. " )
66
+ @available (
67
+ * , deprecated,
68
+ message:
69
+ " Explicitly wrap this async sequence with 'UncheckedSendable' before erasing to throwing stream. "
70
+ )
64
71
public func eraseToThrowingStream( ) -> AsyncThrowingStream < Element , Error > {
65
72
AsyncThrowingStream ( UncheckedSendable ( self ) )
66
73
}
You can’t perform that action at this time.
0 commit comments