Search completed in 0.85 seconds.
13 results for "ReadableStreamDefaultController":
ReadableStreamDefaultController - Web APIs
the
readablestreamdefaultcontroller interface of the streams api represents a controller allowing control of a readablestream's state and internal queue.
...
readablestreamdefaultcontroller instances are created automatically during readablestream construction.
... properties
readablestreamdefaultcontroller.desiredsize read only returns the desired size required to fill the stream's internal queue.
...And 6 more matches
ReadableStreamDefaultController.close() - Web APIs
the close() method of the
readablestreamdefaultcontroller interface closes the associated stream.
... syntax
readablestreamdefaultcontroller.close(); parameters none.
... exceptions typeerror the source object is not a
readablestreamdefaultcontroller.
... when a button is pressed, the generation is stopped, the stream is closed using
readablestreamdefaultcontroller.close(), and another function is run, which reads the data back out of the stream.
ReadableStreamDefaultController.enqueue() - Web APIs
the enqueue() method of the
readablestreamdefaultcontroller interface enqueues a given chunk in the associated stream.
... syntax
readablestreamdefaultcontroller.enqueue(chunk); parameters chunk the chunk to enqueue.
... exceptions typeerror the source object is not a
readablestreamdefaultcontroller.
... when a button is pressed, the generation is stopped, the stream is closed using
readablestreamdefaultcontroller.close(), and another function is run, which reads the data back out of the stream.
ReadableStreamDefaultController.error() - Web APIs
the error() method of the
readablestreamdefaultcontroller interface causes any future interactions with the associated stream to error.
... syntax
readablestreamdefaultcontroller.error(e); parameters e the error you want future interactions to fail with.
... exceptions typeerror the source object is not a
readablestreamdefaultcontroller, or the stream is not readable for some other reason.
... examples the a readable stream with an underlying push source and backpressure support example in the spec provides a good example of using
readablestreamdefaultcontroller.desiredsize to manually detect when the stream is full and apply backpressure, and also of using error() to manually trigger a stream error if another part of the system it relies on fails.
ReadableStreamDefaultController.desiredSize - Web APIs
the desiredsize read-only property of the
readablestreamdefaultcontroller interface returns the desired size required to fill the stream's internal queue.
... syntax var desiredsize =
readablestreamdefaultcontroller.desiredsize; value an integer.
... examples the a readable stream with an underlying push source and backpressure support example in the spec provides a good example of using desiredsize to manually detect when the stream is full and apply backpressure, and also of using
readablestreamdefaultcontroller.error() to manually trigger a stream error if another part of the system it relies on fails.
Index - Web APIs
3612
readablestreamdefaultcontroller api, fetch, interface,
readablestreamdefaultcontroller, reference, streams the
readablestreamdefaultcontroller interface of the streams api represents a controller allowing control of a readablestream's state and internal queue.
... 3613
readablestreamdefaultcontroller.
readablestreamdefaultcontroller() api, constructor,
readablestreamdefaultcontroller, reference, streams the
readablestreamdefaultcontroller() constructor creates and returns a
readablestreamdefaultcontroller() object instance.
... 3614
readablestreamdefaultcontroller.close() api, method,
readablestreamdefaultcontroller, reference, streams, close the close() method of the
readablestreamdefaultcontroller interface closes the associated stream.
...And 3 more matches
ReadableStream.ReadableStream() - Web APIs
the controller parameter passed to this method is a
readablestreamdefaultcontroller or a readablebytestreamcontroller, depending on the value of the type property.
...the controller parameter passed to this method is a
readablestreamdefaultcontroller or a readablebytestreamcontroller, depending on the value of the type property.
...if it is not included, the passed controller will be a
readablestreamdefaultcontroller.
... when a button is pressed, the generation is stopped, the stream is closed using
readablestreamdefaultcontroller.close(), and another function is run, which reads the data back out of the stream.
Using readable streams - Web APIs
if so, there are no more chunks to read (the value is undefined) so we return out of the function and close the custom stream with
readablestreamdefaultcontroller.close(): if (done) { controller.close(); return; } note: close() is part of the new custom stream, not the original stream we are discussing here.
...ntroller.close(); return; } // enqueue the next data chunk into our target stream controller.enqueue(value); return pump(); }); } } }) }) readablestream controllers you’ll notice that the start() and pull() methods passed into the readablestream() constructor are given controller parameters — these are instances of the
readablestreamdefaultcontroller class, which can be used to control your stream.
...
readablestreamdefaultcontroller.enqueue() is then used to enqueue it into the stream.
...current chunk = ' + chunk; list2.appendchild(listitem); result += chunk; // read some more, and call this function again return reader.read().then(processtext); }); } closing and cancelling streams we’ve already shown examples of using
readablestreamdefaultcontroller.close() to close a reader.
Streams API concepts - Web APIs
to use backpressure in a readablestream, we can ask the controller for the chunk size desired by the consumer by querying the
readablestreamdefaultcontroller.desiredsize property on the controller.
Streams API - Web APIs
readablestreamdefaultcontroller represents a controller allowing control of a readablestream's state and internal queue.
Web APIs
reamstats rtcrtpsynchronizationsource rtcrtptransceiver rtcrtptransceiverdirection rtcrtptransceiverinit rtcsctptransport rtcsessiondescription rtcsessiondescriptioncallback rtcstats rtcstatsicecandidatepairstate rtcstatsreport rtcstatstype rtctrackevent rtctrackeventinit radionodelist range readablebytestreamcontroller readablestream readablestreambyobreader readablestreambyobrequest
readablestreamdefaultcontroller readablestreamdefaultreader relativeorientationsensor renderingcontext report reportingobserver reportingobserveroptions request requestdestination resizeobserver resizeobserverentry response rsahashedimportparams rsahashedkeygenparams rsaoaepparams rsapssparams s svgaelement svgaltglyphdefelement svgaltglyphelement svgaltglyphitemelement svgangle svganimatecolorelement svganim...