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

Constructors

new
ReadableStreamDefaultController()

Type Parameters

OutputType

Properties

readonly
desiredSize: number | null
[q.queue_]: Queue<q.QueueElement<OutputType>>
[q.queueTotalSize_]: number
[rs.cancelAlgorithm_]: rs.CancelAlgorithm
[rs.closeRequested_]: boolean
[rs.controlledReadableStream_]: rs.SDReadableStream<OutputType>
[rs.pullAgain_]: boolean
[rs.pullAlgorithm_]: rs.PullAlgorithm<OutputType>
[rs.pulling_]: boolean
[rs.started_]: boolean
[rs.strategyHWM_]: number
[rs.strategySizeAlgorithm_]: QueuingStrategySizeCallback<OutputType>

Methods

close(): void
enqueue(chunk?: OutputType): void
error(e?: shared.ErrorResult): void
[rs.cancelSteps_](reason: shared.ErrorResult): Promise<void>
[rs.pullSteps_](forAuthorCode: boolean): Promise<IteratorResult<OutputType, any>>