Skip to content

ExchangeFn

type ExchangeFn<S> = (state, input, out) => Promise<void> | void;

Defined in: src/types.ts:209

Called once per input batch. Must emit exactly one output batch per call.

Type Parameter Default type
S any
Parameter Type
state S
input VgiBatch
out OutputCollector

Promise<void> | void