Skip to content

Commit 30433cd

Browse files
paulhdkczechboy0
andauthored
Update doc comment in Sources/OpenAPIRuntime/EventStreams/ServerSentEventsDecoding.swift
Co-authored-by: Honza Dvorsky <honza@apple.com>
1 parent cccd5de commit 30433cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OpenAPIRuntime/EventStreams/ServerSentEventsDecoding.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ extension AsyncSequence where Element == ArraySlice<UInt8>, Self: Sendable {
104104
/// Returns another sequence that decodes each event's data as the provided type using the provided decoder.
105105
///
106106
/// Use this method if the event's `data` field is not JSON, or if you don't want to parse it using `asDecodedServerSentEventsWithJSONData`.
107-
/// - Parameter: A closure that determines whether the given byte sequence is the terminating byte sequence defined by the API.
107+
/// - Parameter: A closure that determines whether the given byte chunk should be forwarded to the consumer.
108108
/// - Returns: A sequence that provides the events.
109109
public func asDecodedServerSentEvents(while predicate: @escaping @Sendable (ArraySlice<UInt8>) -> Bool = { _ in true }) -> ServerSentEventsDeserializationSequence<
110110
ServerSentEventsLineDeserializationSequence<Self>

0 commit comments

Comments
 (0)