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

Function pull

packages/platform/deno/test/DenoHttpServer.test.ts:594–599  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

592 const reader = source.getReader()
593 const body = new ReadableStream<Uint8Array>({
594 pull(controller) {
595 return reader.read().then(({ done, value }) => {
596 if (done) controller.close()
597 else controller.enqueue(value)
598 })
599 },
600 cancel(reason) {
601 cancelled = true
602 return reader.cancel(reason)

Callers

nothing calls this directly

Calls 2

readMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected