Menu

This is documentation for the next version of K6. For the latest stable release, go to the latest version.

Open source RSS

ReadableStreamDefaultController

The ReadableStreamDefaultController type allows you to control a ReadableStream’s state and internal queue.

Methods

NameDescription
close()Closes the associated stream.
enqueue(chunk)Enqueues a chunk of data into the associated stream.
error(reason)Causes the stream to become errored.