JavaScripture
Contribute via GitHub Feedback

ReadableStreamDefaultController : ReadableStreamController

Controls a ReadableStream's state and queue.

Instance Properties

desiredSize : Number  

Instance Methods

close() : undefined

Causes the owning stream to close.

Example:

Run

Results:

 

enqueue(chunk : Object) : undefined

Causes the owning stream to return chunk.

Example:

Run

Results:

 

error(reason : Object) : undefined