Async iterable
An async iterable is an object that produces a sequence of values asynchronously through an asynchronous iteration protocol.
Build AI-Enhanced Web Apps
An async iterable is an object that asynchronously produces values for consumption through asynchronous iteration.
- How it is used
- Streams generated AI text so applications can process or display output incrementally.
- How deep it goes
- Explains async generators, delayed yields, loop completion, and termination warnings, while deferring deeper iterator internals.
- Examples
- Uses a delayed one-to-three generator and a streamText Gemini example that writes generated chunks incrementally.
- What you can do after
- Apply it via JavaScript for await...of to consume delayed values or streamed AI text incrementally.
Read how Build AI-Enhanced Web Apps explains async iterable →
The Joy of JavaScript
An async iterable is a value or object that produces a sequence of elements asynchronously during iteration.
- How it is used
- Represents asynchronous push streams so applications can consume data as it becomes available.
- How deep it goes
- Explains the stream role and generator-based model, while deferring broader reactive API treatment to Observable.
- Examples
- Uses database, filesystem, and HTTP data as examples of large asynchronous sources consumed piece by piece.
- What you can do after
- Apply async iterables to represent and consume large asynchronous data streams incrementally.
Related concepts
- async iteratorproduces · An async iterator is an iterator interface that asynchronously produces successive values for consumption over time.
- throwuses · A throw construct explicitly raises or propagates an exception, error, or value to transfer control nonlocally from normal execution.
- textStreamincludes · textStream is a streamText response field that exposes generated text parts as an async iterable.
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.

