Returns the desired size to fill the readable side’s internal queue. It can be negative, if the queue is over-full.
Enqueues the given chunk chunk
in the readable side of the controlled transform stream.
Errors both the readable side and the writable side of the controlled transform stream, making all future
interactions with it fail with the given error e
. Any chunks queued for transformation will be discarded.
Closes the readable side and errors the writable side of the controlled transform stream. This is useful when the transformer only needs to consume a portion of the chunks written to the writable side.
Generated using TypeDoc
Allows control of the ReadableStream and WritableStream of the associated TransformStream.