Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/js/streams/readable-internals.ts>SDReadableStreamDefaultReader

A modern runtime for JavaScript and TypeScript.
Go to Latest
class SDReadableStreamDefaultReader
import { SDReadableStreamDefaultReader } from "https://deno.land/x/deno@v0.30.0/cli/js/streams/readable-internals.ts";

Constructors

new
SDReadableStreamDefaultReader(stream: SDReadableStream<OutputType>)

Type Parameters

OutputType

Properties

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

Methods

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