GraphReFlyTS

API Reference

zip()

zip: combine one value from EACH dep, in lockstep, into a tuple — buffering per-dep queues until every dep has at least one queued value, then shifting one from each. partial:true + ctx.state queues. Completes as soon as ANY dep is terminal AND its queue is empty (no further tuple can form) — completeWhenDepsComplete:false + terminalAsRealInput:true. Any dep ERROR propagates (default errorWhenDepsError).

Import

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

Signature

function zip(): Operator<unknown, T>

Returns

A Operator<unknown, T> value.

Example

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

Source

packages/ts/src/graph/combinators.ts