def next
import bend-kit-llm@0.13.0.1/sse.bend as Sseimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
289# The next whole event, or Want when the bytes run out first. A blank line with no data before it gives no event.
290def next(r: Reader) -> Reader & Next:
291 Reader{Bytes.Bytes{+len, a}, +pos, +seen, cr, st} = r
292 next.at(len, seen, st, skip(cr, a, len, pos))