MCPcopy Index your code
hub / github.com/nodejs/node / drain

Function drain

benchmark/streams/iter-throughput-broadcast.js:116–119  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

114
115 // No-op consumer: drain all batches without collecting
116 async function drain(source) {
117 // eslint-disable-next-line no-unused-vars
118 for await (const _ of source) { /* drain */ }
119 }
120
121 async function run() {
122 const { writer, broadcast: bc } = broadcast();

Callers 1

runFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…