MDN self-hosted library · e01.org

TransformStreamDefaultController: terminate() method

Streams

Streams

The terminate() method of the TransformStreamDefaultController interface closes the readable side and errors the writable side of the stream.

Syntax

terminate()

Parameters

None.

Return value

None (undefined).

Examples

In the below example the terminate() method is called on a TransformStreamDefaultController.

controller.terminate();

Specifications

Browser compatibility