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

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

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

Constructors

new
FromAsyncIterator(source: AsyncIterator<T>, close?: () => MaybePromise<void>)

Properties

optional
return: () => MaybePromise<any>

Methods

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