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

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