liveBook · Manning

ReadableStream

Also called readable stream

ReadableStream is a Web Streams API interface representing a source of data that can be read incrementally.

How 2 Manning books explain it

JavaScript in Depth

A Web Streams API object representing a source from which data can be read incrementally.

How it is used
Provides portable, incrementally consumed data flow for web-platform pipelines and fetch-style sources.
How deep it goes
Traces source pulling, queueing, promise costs, backpressure, errors, and runtime optimization, but not full standard algorithms.
Examples
Uses an underlying source with pull(), controller.enqueue(), getReader(), read(), and a documented pull-cycle diagram.
What you can do after
Apply it via the Web Streams API, read chunks incrementally, respect pull-based backpressure, and catch rejected reads.

Read how JavaScript in Depth explains ReadableStream →

Secrets of the JavaScript Ninja, Third Edition

A Web Streams API interface representing a source of data that consumers can read incrementally.

How it is used
Provides an incrementally readable source for fetch response bodies and stream-processing pipelines.
How deep it goes
Works through construction, async iteration, closure, piping, and push-versus-pull behavior, including queueing and buffering.
Examples
Uses a delayed string source, byte chunks decoded across boundaries, and a pull-driven Fibonacci sequence.
What you can do after
Build it from scratch with `start` or `pull`, consume it asynchronously, and pipe its output through a transform into a sink.

Read how Secrets of the JavaScript Ninja, Third Edition explains ReadableStream →

Also covered in

What to know first

Related concepts

Questions about ReadableStream

What is ReadableStream?

ReadableStream is a Web Streams API interface representing a source of data that can be read incrementally.

Which Manning books explain ReadableStream?

JavaScript in Depth and Secrets of the JavaScript Ninja, Third Edition.

What should I know before learning ReadableStream?

Manning books that teach ReadableStream usually introduce data chunk and JSON first.

What kinds of ReadableStream are there?

Kinds of ReadableStream include transform stream.

What is ReadableStream a kind of?

ReadableStream is a kind of data stream. A data stream is an ordered sequence of data items that may be ongoing and is made available incrementally for consumption or processing.

What is ReadableStream also called?

ReadableStream is also called readable stream.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.