Skip to main content
Module

x/asynciter/mod.ts>IAsyncIter

Map, filter, reduce for AsyncIterables in Deno.
Latest
interface IAsyncIter
implements AsyncIterable<T>
import { type IAsyncIter } from "https://deno.land/x/asynciter@0.0.18/mod.ts";

Methods

map<U>(mapFn: (item: T) => U | Promise<U>): IAsyncIter<U>
concurrentMap<U>(mapFn: (item: T) => Promise<U>, concurrency?: number): IAsyncIter<U>
concurrentUnorderedMap<U>(mapFn: (item: T) => Promise<U>, concurrency?: number): IAsyncIter<U>
filter(filterFn: (item: T) => boolean | Promise<boolean>): IAsyncIter<T>
reduce<U>(zero: U, reduceFn: (acc: U, item: T) => U | Promise<U>): Promise<U>
forEach(forEachFn: (item: T) => void | Promise<void>): Promise<void>
first(): Promise<T | null>
collect(): Promise<T[]>