File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
Sources/OpenAPIRuntime/EventStreams Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -58,19 +58,13 @@ extension ServerSentEventsDeserializationSequence: AsyncSequence {
5858 /// The state machine of the iterator.
5959 var stateMachine : StateMachine
6060
61- /// A closure that determines whether the given byte chunk should be forwarded to the consumer.
62- /// - Parameter: A byte chunk.
63- /// - Returns: `true` if the byte chunk should be forwarded, `false` if this byte chunk is the terminating sequence.
64- let predicate : ( ArraySlice < UInt8 > ) -> Bool
65-
6661 /// Creates a new sequence.
6762 /// - Parameters:
6863 /// - upstream: The upstream sequence of arbitrary byte chunks.
6964 /// - while: A closure that determines whether the given byte chunk should be forwarded to the consumer.
7065 init ( upstream: UpstreamIterator , while predicate: @escaping ( ( ArraySlice < UInt8 > ) -> Bool ) ) {
7166 self . upstream = upstream
7267 self . stateMachine = . init( while: predicate)
73- self . predicate = predicate
7468 }
7569
7670 /// Asynchronously advances to the next element and returns it, or ends the
You can’t perform that action at this time.
0 commit comments