TransformStreamDefaultController: terminate() method
Note: This feature is available in Web Workers.
The terminate()
method of the TransformStreamDefaultController
interface closes the readable side and errors the writable side of the stream.
Syntax
js
terminate()
Parameters
None.
Return value
None (undefined
).
Examples
In the below example the terminate()
method is called on a TransformStreamDefaultController
.
js
controller.terminate();
Specifications
Specification |
---|
Streams Standard # ts-default-controller-terminate |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
terminate |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.