ReadableStreamDefaultReader

Overview

The ReadableStreamDefaultReader interface of the Streams API represents a default reader that can be used to read stream data supplied from a network (e.g. a fetch request).

Location

Properties


closed

 

property closed: dynamic read;

 

dynamic closed { get; }

 

var closed: dynamic { get{} }

 

dynamic closed { __get; }

 

ReadOnly Property closed() As dynamic

Required Methods


cancel

Cancels the stream, signaling a loss of interest in the stream by a consumer. The supplied reason argument will be given to the underlying source, which may or may not use it.

 

method cancel(parreason: dynamic): dynamic

 

dynamic cancel(dynamic parreason)

 

func cancel(_ parreason: dynamic) -> dynamic

 

dynamic cancel(dynamic parreason)

 

Function cancel(parreason As dynamic) As dynamic

Parameters:

  • parreason:

read

Returns a promise providing access to the next chunk in the stream's internal queue.

 

method read: dynamic

 

dynamic read()

 

func read() -> dynamic

 

dynamic read()

 

Function read() As dynamic

releaseLock

Releases the reader's lock on the stream.

 

method releaseLock: dynamic

 

dynamic releaseLock()

 

func releaseLock() -> dynamic

 

dynamic releaseLock()

 

Function releaseLock() As dynamic