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

Function start

packages/computer/src/exec-wire.test.ts:15–18  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

13function streamOf<T>(items: T[]): ReadableStream<T> {
14 return new ReadableStream<T>({
15 start(controller) {
16 for (const item of items) controller.enqueue(item);
17 controller.close();
18 },
19 });
20}
21

Callers

nothing calls this directly

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected