ReadableStreamDefaultController

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.

 

method close

 

void close()

 

func close()

 

void close()

 

Sub close()

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)

 

void error(dynamic pare)

 

func error(_ pare: dynamic)

 

void error(dynamic pare)

 

Sub error(pare As dynamic)

Parameters:

  • pare: