GraphReFlyTS

API Reference

concatMap()

concatMap: project each source value to an inner, but run AT MOST ONE inner at a time — queue later source values (lazy projection) and activate the next only when the active inner COMPLETEs. Preserves source order.

Import

import { concatMap } from "@graphrefly/ts/operators";

Signature

function concatMap(project: Project<TIn, TOut>): Operator<TIn, TOut>

Parameters

ParameterTypeDescription
projectProject<TIn, TOut>project value used by the helper.

Returns

A Operator<TIn, TOut> value.

Example

import { concatMap } from "@graphrefly/ts/operators";

Source

packages/ts/src/graph/higher-order.ts