MCPcopy
hub / github.com/coder/mux / start

Function start

src/node/utils/runtime/helpers.test.ts:32–35  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

30function createTextStream(content: string): ReadableStream<Uint8Array> {
31 return new ReadableStream<Uint8Array>({
32 start(controller) {
33 controller.enqueue(new TextEncoder().encode(content));
34 controller.close();
35 },
36 });
37}
38

Callers

nothing calls this directly

Calls 2

enqueueMethod · 0.80
closeMethod · 0.65

Tested by

no test coverage detected