interface ReadableStreamDefaultReader
A reader that pulls chunks from a ReadableStream.
Index
Properties
Methods
cancel(reason)
Cancels the stream.
cancel(reason?: any): Promise<void>;
| Name | Type | Description |
|---|---|---|
| optional reason | any | |
| Return Value | Promise<void> |
closed Promise<void> read-only
Resolves when the stream closes or rejects on error.
read()
Reads the next chunk.
read(): Promise<ReadableStreamReadResult>;
| Name | Type | Description |
|---|---|---|
| Return Value | Promise<ReadableStreamReadResult> |
releaseLock()
Releases the reader's lock on the stream.
releaseLock(): void;