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

x/deno/cli/js/streams/readable-stream-byob-reader.ts>SDReadableStreamBYOBReader

A modern runtime for JavaScript and TypeScript.
Go to Latest
class SDReadableStreamBYOBReader
implements [rs.SDReadableStreamBYOBReader]
import { SDReadableStreamBYOBReader } from "https://deno.land/x/deno@v0.30.0/cli/js/streams/readable-stream-byob-reader.ts";

Constructors

new
SDReadableStreamBYOBReader(stream: rs.SDReadableStream<ArrayBufferView>)

Properties

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

Methods

cancel(reason: shared.ErrorResult): Promise<void>
read(view: ArrayBufferView): Promise<IteratorResult<ArrayBufferView>>
releaseLock(): void