Skip to content

ProducerFn

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

Defined in: src/types.ts:199

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

Type ParameterDefault type
Sany
ParameterType
stateS
outOutputCollector

Promise<void> | void