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

Function generateChunks

test/parallel/test-quic-stream-body-async-iterable.mjs:39–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37await clientSession.opened;
38
39async function* generateChunks() {
40 for (const chunk of chunks) {
41 yield encoder.encode(chunk);
42 }
43}
44
45const stream = await clientSession.createBidirectionalStream();
46stream.setBody(generateChunks());

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected