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

x/proc/src/deps/asynciter.ts>IAsyncIter

A better way to work with processes in Deno.
Very Popular
Go to Latest
interface IAsyncIter
implements AsyncIterable<T>
import { type IAsyncIter } from "https://deno.land/x/proc@0.20.43/src/deps/asynciter.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[]>