MCPcopy Create free account
hub / github.com/cloudflare/computer / pull

Function pull

packages/dofs/src/fs/writeFile.test.ts:57–63  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

55 let i = 0;
56 return new ReadableStream<Uint8Array>({
57 pull(controller) {
58 if (i < chunks.length) {
59 controller.enqueue(chunks[i++]);
60 } else {
61 controller.close();
62 }
63 },
64 });
65}
66

Callers

nothing calls this directly

Calls 2

countBlobsFunction · 0.70
closeMethod · 0.65

Tested by

no test coverage detected