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

Function slowSource

test/parallel/test-quic-stream-body-error.mjs:31–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30let yieldCount = 0;
31async function* slowSource() {
32 while (true) {
33 yield encoder.encode(`chunk ${yieldCount++} `);
34 await setTimeout(50);
35 }
36}
37
38const stream = await clientSession.createBidirectionalStream();
39stream.setBody(slowSource());

Callers 1

Calls 2

encodeMethod · 0.80
setTimeoutFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…