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