MCPcopy Create free account
hub / github.com/nodejs/node / withFlushAsync

Function withFlushAsync

lib/internal/streams/iter/pull.js:643–646  ·  view source on GitHub ↗

* Append a null flush signal after the source is exhausted. * @yields {Uint8Array[]}

(source)

Source from the content-addressed store, hash-verified

641 * @yields {Uint8Array[]}
642 */
643async function* withFlushAsync(source) {
644 yield* source;
645 yield null;
646}
647
648async function* applyStatefulAsyncTransform(source, transform, options) {
649 const output = transform(withFlushAsync(source), options);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected