TransformStreamDefaultController.terminate()

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

Syntax

TransformStreamDefaultController.terminate();

Parameters

None.

Examples

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

controller.terminate()

Specifications

Specification Status Comment
Streams
The definition of 'TransformStreamDefaultController.terminate()' in that specification.
Living Standard Initial definition

Browser compatibility

BCD tables only load in the browser