ReadableStreamDefaultController
interface
interface ReadableStreamDefaultController<R = any>variable
var ReadableStreamDefaultController: { … }The constructor object for ReadableStreamDefaultController.
Instances are passed to a ReadableStream's underlying source
callbacks rather than constructed directly, so calling the constructor
throws.
Constructors
constructor
new ReadableStreamDefaultController(): neverProperties
desiredSize
readonly desiredSize: number | nullprototype
readonly prototype: ReadableStreamDefaultControllerMethods
close
close(): voidenqueue
enqueue(chunk?: R): voiderror
error(e?: any): void