endOfStream

fun endOfStream(error: EndOfStreamError = definedExternally)(source)

The endOfStream() method of the ``js-nolint endOfStream() endOfStream(endOfStreamError) `` - endOfStreamError MISSING: optional_inline] - : A string representing an error to throw when the end of the stream is reached.

MDN Reference