close()
The close()
method of the ReadableStreamDefaultController interface closes the associated stream.
Readers can still read any previously enqueued chunks from the stream. Once those chunks are read, the stream closes, and no more data is available.