close

fun close()(source)

The close() method of the ReadableStreamDefaultController interface closes the associated stream.

MDN Reference