Firefox Tomorrow

web api instance method

TransformStreamDefaultController: terminate() method

View on MDN ↗

Available in workers

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

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.