Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class ReadableStreamDefaultReader
implements [rs.SDReadableStreamReader]<OutputType>
import { ReadableStreamDefaultReader } from "https://deno.land/x/deno@v0.30.0/cli/js/streams/readable-stream-default-reader.ts";

Constructors

new
ReadableStreamDefaultReader(stream: rs.SDReadableStream<OutputType>)

Type Parameters

OutputType

Properties

readonly
closed: Promise<void>
[rs.closedPromise_]: shared.ControlledPromise<void>
[rs.ownerReadableStream_]: rs.SDReadableStream<OutputType> | undefined
[rs.readRequests_]: Array<rs.ReadRequest<IteratorResult<OutputType>>>

Methods

cancel(reason: shared.ErrorResult): Promise<void>
read(): Promise<IteratorResult<OutputType | undefined>>
releaseLock(): void