This page is not complete.
ReadableStreamDefaultController() constructor creates and returns a
ReadableStreamDefaultController() object instance.
Note: You wouldn't use this constructor manually — this is used during the construction of a
var readableStreamController = new ReadableStreamDefaultController(stream, underlyingSource, size, highWaterMark);
ReadableStreamto be controlled.
- An object containing methods and properties that define how the constructed stream instance will behave. See the
ReadableStream()constructor's parameters definitions for more information.
- A method containing a parameter
chunk— this indicates the size to use for each chunk, in bytes.
- A non-negative integer — this defines the total number of chunks that can be contained in the internal queue before backpressure is applied.
An instance of the
- The supplied
streamparameter is not a
ReadableStream, or it already has an associated controller.
The definition of 'ReadableStreamDefaultController()' in that specification.
|Living Standard||Initial definition.|
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
No compatibility data found. Please contribute data for "path.to.feature.NameOfTheConstructor" (depth: 1) to the MDN compatibility data repository.