File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Sources/OpenAPIRuntime/Deprecated Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -59,3 +59,14 @@ extension Configuration {
59
59
)
60
60
}
61
61
}
62
+
63
+ extension AsyncSequence where Element == ArraySlice < UInt8 > , Self: Sendable {
64
+ /// Returns another sequence that decodes each event's data as the provided type using the provided decoder.
65
+ ///
66
+ /// Use this method if the event's `data` field is not JSON, or if you don't want to parse it using `asDecodedServerSentEventsWithJSONData`.
67
+ /// - Returns: A sequence that provides the events.
68
+ @available ( * , deprecated, renamed: " asDecodedServerSentEvents(while:) " )
69
+ @_disfavoredOverload public func asDecodedServerSentEvents( ) -> ServerSentEventsDeserializationSequence <
70
+ ServerSentEventsLineDeserializationSequence < Self >
71
+ > { asDecodedServerSentEvents ( while: { _ in true } ) }
72
+ }
You can’t perform that action at this time.
0 commit comments