Skip to content

ProducerFn

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

Defined in: src/types.ts:204

Called repeatedly to produce output batches. Call out.finish() to end the stream.

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

Promise<void> | void