Skip to main content
Version: 3.13.0

ReadableStreamDefaultController.enqueue()

The enqueue() method of the ReadableStreamDefaultController interface enqueues a given chunk in the associated stream.

Syntax

enqueue(chunk)

Parameters

  • chunk
    • : The chunk to enqueue.

Return value

None (undefined).

Exceptions

  • TypeError
    • : Thrown if the source object is not a ReadableStreamDefaultController.