Edit in GitHubLog an issue

window.ReadableStreamDefaultController

See: Web APIs - ReadableStreamDefaultController

desiredSize : number

Returns the desired size to fill the controlled stream’s internal queue. It can be negative, if the queue is over-full.

close()

Closes the controlled readable stream. Consumers will still be able to read any previously-enqueued chunks from the stream, but once those are read, the stream will become closed.

Throws:

  • TypeError thrown if the source is not a ReadableStreamDefaultController

enqueue(chunk)

Enqueues the given chunk in the controlled readable stream.

Throws:

  • TypeError thrown if the source is not a ReadableStreamDefaultController
ParamType
chunk
*

error(error)

Errors the controlled readable stream, making all future interactions with it fail with the given error.

Throws:

  • TypeError thrown if the source object is not a ReadableStreamDefaultController
ParamType
error
*
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.