ReadableStreamReader object

The ReadableStreamReader class represents a readable stream reader that allows direct reading of chunks (a single piece of data to be read from the stream) from a ReadableStream.

Members

The ReadableStreamReader object has these types of members:

  • Methods

Methods

The ReadableStreamReader object has these methods.

Method Description
cancel

The cancel method initiates the cancel method of the readable steam.

read

The read method allows access to the next chunk from the stream’s queue.

releaseLock

The releaseLock method releases the reader's lock on the corresponding stream.

 

Standards information

Remarks

A ReadableStreamReader object can be accessed by calling getReader on a ReadableStream object.