Classes
ReadableStreamDefaultController
Type Parameters
Type Parameter | Default type |
---|---|
R | any |
Implements
Constructors
new ReadableStreamDefaultController()
new ReadableStreamDefaultController<R
>(): ReadableStreamDefaultController
<R
>
Returns
ReadableStreamDefaultController
<R
>
Properties
Property | Modifier | Type | Description |
---|---|---|---|
desiredSize | readonly | null | number | MDN Reference |
Methods
close()
close(): void
Returns
void
Implementation of
globalThis.ReadableStreamDefaultController.close
enqueue()
enqueue(chunk
?): void
Parameters
Parameter | Type |
---|---|
chunk ? | R |
Returns
void
Implementation of
globalThis.ReadableStreamDefaultController.enqueue
error()
error(e
?): void
Parameters
Parameter | Type |
---|---|
e ? | any |
Returns
void
Implementation of
globalThis.ReadableStreamDefaultController.error