A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/en-US/docs/Web/API/TransformStreamDefaultController/terminate below:

TransformStreamDefaultController: terminate() method - Web APIs

MDN Web Docs
  1. Web
  2. Web APIs
  3. TransformStreamDefaultController
  4. terminate()

Filter sidebar

In this article
  1. Streams API
  2. TransformStreamDefaultController
  3. Instance properties
    1. desiredSize
  4. Instance methods
    1. enqueue()
    2. error()
    3. terminate()
  5. Related pages for Streams
    1. ByteLengthQueuingStrategy
    2. CountQueuingStrategy
    3. ReadableByteStreamController
    4. ReadableStream
    5. ReadableStreamBYOBReader
    6. ReadableStreamBYOBRequest
    7. ReadableStreamDefaultController
    8. ReadableStreamDefaultReader
    9. Response.body
    10. TransformStream
    11. Window.fetch()
    12. WritableStream
    13. WritableStreamDefaultController
    14. WritableStreamDefaultWriter
  6. Guides
    1. Streams API concepts
    2. Using readable streams
    3. Using readable byte streams
    4. Using writable streams
In this article TransformStreamDefaultController: terminate() method

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since June 2022.

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
# ts-default-controller-terminate
Browser compatibility Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on Apr 22, 2024 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4