Skip to content
PACKAGES

settle()

settle: forward each DATA unchanged, watch for convergence, COMPLETE once the source has been quiet for quietWaves consecutive waves (or maxWaves elapsed). “Wave” = one fn invocation (a DATA batch OR a bare undirty RESOLVED end-of-wave). No polling (R-no-polling) — the counter advances only on real upstream waves. settle’s own equals is a body comparator, NOT the removed substrate equals (D49).

import { settle } from "@graphrefly/ts/operators";
function settle(opts: SettleOpts<S>): Operator<S, S>
ParameterTypeDescription
optsSettleOpts<S>Options that configure the helper.

A Operator<S, S> value.

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

packages/ts/src/graph/operators.ts