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 Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
S | any |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
state | S |
out | OutputCollector |
Returns
Section titled “Returns”Promise<void> | void