The close() method of the ReadableStreamDefaultController interface closes the associated stream.
The enqueue() method of the ReadableStreamDefaultController interface enqueues a given chunk in the associated stream.
The error() method of the ReadableStreamDefaultController interface causes any future interactions with the associated stream to error.
Optionale: any
The
ReadableStreamDefaultControllerinterface of the Streams API represents a controller allowing control of a ReadableStream's state and internal queue. Default controllers are for streams that are not byte streams.MDN Reference