Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class ReadableStreamAsyncIterator
implements AsyncIterableIterator<IterableItem>
import { ReadableStreamAsyncIterator } from "https://deno.land/std@0.110.0/node/_stream/async_iterator.ts";

Constructors

new
ReadableStreamAsyncIterator(stream: Readable)

Properties

readonly
stream
[kEnded]: boolean
[kError]: Error | null
[kHandlePromise]: (resolve: (value: ReadableIteratorResult) => void, reject: (value: Error) => void) => unknown
[kLastPromise]: null | Promise<ReadableIteratorResult>
[kLastReject]: null | ((value: Error) => void)
[kLastResolve]: null | ((value: ReadableIteratorResult) => void)
[kStream]: Readable
[Symbol.asyncIterator]

Methods

next(): Promise<ReadableIteratorResult>
return(): Promise<ReadableIteratorResult>
throw(err: Error): Promise<ReadableIteratorResult>