MCPcopy Create free account
hub / github.com/Effect-TS/effect / pull

Function pull

packages/effect/test/unstable/httpapi/HttpApiClient.test.ts:836–842  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

834 let index = 0
835 return new ReadableStream<Uint8Array>({
836 pull(controller) {
837 if (index === chunks.length) {
838 controller.close()
839 } else {
840 controller.enqueue(textEncoder.encode(chunks[index++]!))
841 }
842 }
843 })
844}
845

Callers

nothing calls this directly

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected