Overview

The ReadableStreamDefaultController interface 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.

Location

Properties


desiredSize

property desiredSize: Int32 read;
Int32 desiredSize { get; }
var desiredSize: Int32 { get{} }
Int32 desiredSize { __get; }
ReadOnly Property desiredSize() As Int32

Required Methods


close

Closes the associated stream.


enqueue

Enqueues a given chunk in the associated stream.

method enqueue(parchunk: dynamic)
void enqueue(dynamic parchunk)
func enqueue(_ parchunk: dynamic)
void enqueue(dynamic parchunk)
Sub enqueue(parchunk As dynamic)

Parameters:

  • parchunk:

error

Causes any future interactions with the associated stream to error.

method error(pare: dynamic)
func error(_ pare: dynamic)
Sub error(pare As dynamic)

Parameters:

  • pare: