The internal queue of a
ReadableStream contains chunks that have been enqueued, but not yet read. The browser determines the desired size to fill the stream, and it is this value returned by the
0 then the queue is full. Therefore you can use this information to manually apply backpressure to manage the queue.
let desiredSize = TransformStreamDefaultController.desiredSize;
The desired size.
In the next example the
desiredSize is logged to the console.
The definition of 'TransformStreamDefaultController.desiredSize' in that specification.
|Living Standard||Initial definition|
BCD tables only load in the browser