enqueue()

The stream controller method that adds a chunk to a ReadableStream for readers to consume.

In more detail

A stream you build yourself calls controller.enqueue(chunk) for each piece and controller.close() at the end. More generally, to enqueue is to add something to the back of a queue.

Related terms

Taught in

References