emitEndOfStream

fun emitEndOfStream(sequence: Long)

Terminate the stream with an end-of-stream marker (empty bytes). Idempotent — subsequent calls (and any late emit) are ignored.