MCPcopy
hub / github.com/simstudioai/sim / pull

Function pull

apps/sim/connectors/utils.test.ts:1150–1156  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

1148 let index = 0
1149 const stream = new ReadableStream<Uint8Array>({
1150 pull(controller) {
1151 if (index < chunks.length) {
1152 controller.enqueue(chunks[index++])
1153 } else {
1154 controller.close()
1155 }
1156 },
1157 cancel() {
1158 onCancel?.()
1159 },

Callers

nothing calls this directly

Calls 2

enqueueMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected