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

x/rimbu/stream/async-custom/index.ts>AsyncFlatMapIterator

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class AsyncFlatMapIterator
Re-export
import { AsyncFlatMapIterator } from "https://deno.land/x/rimbu@1.0.3/stream/async-custom/index.ts";

Constructors

new
AsyncFlatMapIterator(
source: AsyncStream<T>,
flatMapFun: (
value: T,
index: number,
halt: () => void,
) => AsyncStreamSource<T2>
,
asyncStreamSourceHelpers: AsyncStreamSourceHelpers,
)

Properties

currentIterator: null | AsyncFastIterator<T2>
done: boolean
iterator: AsyncFastIterator<T>
readonly
state

Methods

fastNext<O>(otherwise?: AsyncOptLazy<O>): Promise<T2 | O>