bufferCount()
bufferCount: batch consecutive source DATA into arrays of length count; the remainder flushes on
source COMPLETE. Single dep + ctx.state buffer + completeWhenDepsComplete:false + terminalAsRealInput:true.
Import
Section titled “Import”import { bufferCount } from "@graphrefly/ts/operators";Signature
Section titled “Signature”function bufferCount(count: number): Operator<S, S[]>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
count | number | count value used by the helper. |
Returns
Section titled “Returns”A Operator<S, S[]> value.
Example
Section titled “Example”import { bufferCount } from "@graphrefly/ts/operators";Source
Section titled “Source”packages/ts/src/graph/combinators.ts