exhaustMap()
exhaustMap: while an inner is active, DROP new source values; project the next source value only after the active inner COMPLETEs.
Import
Section titled “Import”import { exhaustMap } from "@graphrefly/ts/operators";Signature
Section titled “Signature”function exhaustMap(project: Project<TIn, TOut>): Operator<TIn, TOut>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
project | Project<TIn, TOut> | project value used by the helper. |
Returns
Section titled “Returns”A Operator<TIn, TOut> value.
Example
Section titled “Example”import { exhaustMap } from "@graphrefly/ts/operators";Source
Section titled “Source”packages/ts/src/graph/higher-order.ts