Skip to main content
Version: 3.27.2

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.