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

x/rimbu/core/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.5/core/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>