Class IteratorSource<T>

An underlying source for an Iterator or AsyncIterator.

Example

const reader = new ReadableStream(new IteratorSource((function* () {
yield 1
yield 2
})()))

Type Parameters

  • T

Implements

  • UnderlyingDefaultSource<T>

Constructors

Properties

Methods

Constructors

Properties

#iterator: Iterator<T, any, undefined> | AsyncIterator<T, any, undefined>

Methods

Generated using TypeDoc