Skip to main content
Module

x/rimbu/mod.ts>AsyncCollectFun

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias AsyncCollectFun
Re-export
import { type AsyncCollectFun } from "https://deno.land/x/rimbu@0.13.1/mod.ts";

A potentially asynchronous function used in collect methods to collect values from a collection. This is basically a single-pass map and filter.

definition: (
value: T,
index: number,
halt: () => void,
) => MaybePromise<R | CollectFun.Skip>