Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/stream/async-custom/async-fast-iterator-base.ts>AsyncUnfoldIterator

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class AsyncUnfoldIterator
extends AsyncFastIteratorBase<T>
import { AsyncUnfoldIterator } from "https://deno.land/x/rimbu@1.1.0/stream/async-custom/async-fast-iterator-base.ts";

Constructors

new
AsyncUnfoldIterator(init: T, getNext: (
current: T,
index: number,
stop: Token,
) => MaybePromise<T | Token>
)

Properties

current: T | Token
index: number

Methods

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