TextChunkSource

fun interface TextChunkSource

A synchronous, pull-based producer of text chunks.

Empty chunks are permitted and null alone denotes end of input.

Functions

Link copied to clipboard
abstract fun readChunk(): String?

Returns the next possibly empty chunk, or null when no input remains.