TransformStreamDefaultController.terminate()
Invalid slug for templ/sidebar: Streams API
TransformStreamDefaultController
接口的 terminate()
方法用于关闭流的可读端并且会使流的可写端出错。
语法
js
terminate()
参数
无。
返回值
无(undefined
)。
示例
在以下示例中,调用了 TransformStreamDefaultController
的 terminate()
方法。
js
controller.terminate();
规范
Specification |
---|
Streams # ts-default-controller-terminate |
浏览器兼容性
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.