Go to Latest
class ReadableStreamAsyncIterator
implements AsyncIterableIterator<IterableItem>
import { ReadableStreamAsyncIterator } from "https://dotland.deno.dev/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>